DeviceAlwaysOn()
Syntax
DeviceAlwaysOn(AlwaysOn)Description
Change the behavior of the device screen auto off setting while the app is displayed.
Parameters
AlwaysOn If set to #True, the screen won't be turned off automatically when no action is happening (useful for a game for example). If set to #False, it reset to the default screen auto off settings.
Return value
None.
Example
DeviceAlwaysOn(#True) ; Starting from now, the screen won't turn off while the app is displayed
Supported OS
Android, iOS