Table of Contents

Screen:getState

Available since version: 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.

Syntax:

(number) = Screen:getState()

Return value:

  • number: The Screen's state