Keep Screen On

๐Ÿ“˜

Keep the device screen on all the time for many purposes such as a in-vehicle display app, museum kiosk app, trade show demo, etc. In addition to an app configuration which will be enabled at all times this setting can also be set and cleared via the JavaScript Bridge.

To set this mode as default enable within your app configuration on the Interface tab.

This setting can also be changed at runtime using the Median JavaScript Bridge.

โ†”๏ธMedian JavaScript Bridge

To enable Keep Screen On:

median.screen.keepScreenOn();

To disable Keep Screen On:

median.screen.keepScreenNormal();