Difference between revisions of "Screen:getState"
From GiderosMobile
Line 10: | Line 10: | ||
The returned number is the sum of the following possible values: | The returned number is the sum of the following possible values: | ||
− | * Screen.STATE_MINIMIZED: Screen/Window is minimized | + | * Screen.STATE_NORMAL '''0''': Screen/Window is normal |
− | * Screen.STATE_MAXIMIZED: Screen/Window is maximized | + | * Screen.STATE_MINIMIZED '''1''': Screen/Window is minimized |
− | * Screen.STATE_FULLSCREEN: Screen/Window is fullscreen | + | * Screen.STATE_MAXIMIZED '''2''': Screen/Window is maximized |
− | * Screen.STATE_ACTIVE: Screen/Window is active/focused | + | * Screen.STATE_FULLSCREEN '''4''': Screen/Window is fullscreen |
− | * Screen.STATE_HIDDEN: Screen/Window is not displayed | + | * Screen.STATE_ACTIVE '''8''': Screen/Window is active/focused |
− | * Screen.STATE_CLOSED: Screen/Window is closed | + | * Screen.STATE_HIDDEN '''16''': Screen/Window is not displayed |
+ | * Screen.STATE_CLOSED '''32''': Screen/Window is closed | ||
=== Return values === | === Return values === | ||
− | '''Returns''' (number) the screen | + | '''Returns''' (number) the sum of the screen states<br/> |
{{Screen}} | {{Screen}} |
Revision as of 19:03, 14 March 2023
Available since: Gideros 2017.8
Class: Screen
Description
Returns the state of the screen.
(number) = Screen:getState()
The returned number is the sum of the following possible values:
- Screen.STATE_NORMAL 0: Screen/Window is normal
- Screen.STATE_MINIMIZED 1: Screen/Window is minimized
- Screen.STATE_MAXIMIZED 2: Screen/Window is maximized
- Screen.STATE_FULLSCREEN 4: Screen/Window is fullscreen
- Screen.STATE_ACTIVE 8: Screen/Window is active/focused
- Screen.STATE_HIDDEN 16: Screen/Window is not displayed
- Screen.STATE_CLOSED 32: Screen/Window is closed
Return values
Returns (number) the sum of the screen states