View source
enum abstract SystemIdleMode(Null<Int>)
package openfl.desktop
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
The SystemIdleMode class provides constant values for system idle behaviors.
These constants are used in the systemIdleMode
property of the
NativeApplication
class.
See also:
Variables
inlineread onlyKEEP_AWAKE:SystemIdleMode = 0
Prevents the system from dropping into an idle mode.
On Android, the application must specify the Android permissions for DISABLE_KEYGUARD and WAKE_LOCK in the application descriptor or the operating system will not honor this setting.