Screen:setState

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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_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

Parameters

state: (number) the required state of the screen