Difference between revisions of "Screen:getState"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2017.8<br/>
 
'''Available since:''' Gideros 2017.8<br/>
 
=== Description ===
 
=== Description ===
Return the state of the screen. The returned number is the or-sum of the following possible values:
+
<translate>Return the state of the screen. The returned number is the or-sum of the following possible values:
 
   * Screen.STATE_MINIMIZED: Screen/Window is minimized.  
 
   * Screen.STATE_MINIMIZED: Screen/Window is minimized.  
 
   * Screen.STATE_MAXIMIZED: Screen/Window is maximized.  
 
   * Screen.STATE_MAXIMIZED: Screen/Window is maximized.  
Line 8: Line 8:
 
   * Screen.STATE_ACTIVE: Screen/Window is active/focused.  
 
   * Screen.STATE_ACTIVE: Screen/Window is active/focused.  
 
   * Screen.STATE_HIDDEN: Screen/Window is not displayed.  
 
   * Screen.STATE_HIDDEN: Screen/Window is not displayed.  
   * Screen.STATE_CLOSED: Screen/Window is closed.
+
   * Screen.STATE_CLOSED: Screen/Window is closed.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number) = Screen:getState()
 
(number) = Screen:getState()
 
</source>
 
</source>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) The Screen's state<br/>
+
'''Returns''' (number) <translate>The Screen's state</translate><br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2017.8

Description

Return the state of the screen. The returned number is the or-sum of the following possible values:

  	* Screen.STATE_MINIMIZED: Screen/Window is minimized. 
  	* Screen.STATE_MAXIMIZED: Screen/Window is maximized. 
  	* Screen.STATE_FULLSCREEN: Screen/Window is fullscreen. 
  	* Screen.STATE_ACTIVE: Screen/Window is active/focused. 
  	* Screen.STATE_HIDDEN: Screen/Window is not displayed. 
  	* Screen.STATE_CLOSED: Screen/Window is closed.
(number) = Screen:getState()

Return values

Returns (number) The Screen's state