With this function you can turn on or off the power saving features of the device. This is important as certain games (for example those that use the tilt functions) may not generate events that the OS can interpret as being user input and so shut down the screen or exit the game. By setting this function to false you can disable the power saving features and ensure that the screen (and game) are always functioning.NOTE: This is limited to iOS and Android targets.
|flag||Set to true or false to enable or disable powersave functions.|
if os_type == os_android || os_type == os_ios
The above code checks the OS type and if it is either Android or an iOS then power saving features are deactivated.