Difference between revisions of "Screen:setState"
From GiderosMobile
Line 8: | Line 8: | ||
Screen:setState(state) | Screen:setState(state) | ||
</source> | </source> | ||
+ | |||
+ | '''''state''''' is the 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 | ||
=== Parameters === | === Parameters === |
Revision as of 17:22, 14 March 2023
Available since: Gideros 2017.8
Class: Screen
Description
Attempts to configure the screen or window, if allowed by the platform.
Screen:setState(state)
state is the 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
Parameters
state: (number) the required state of the screen