Module: siteKiosk.system.power

This module lets you control the wake/sleep behavior of the device.

Example

// sleep for a short time and then wake up again
siteKiosk.system.power.sleep();

setTimeout(function() {
 siteKiosk.system.power.wakeUp();
}, 10000);

Methods

<static> getDisplayOn() → {boolean}

Gets whether the display is on.
Returns:
True, if the display is on
Type
boolean

<static> sleep()

Releases all wake locks so that the system can enter sleep mode after the set time.

<static> wakeUp()

Exits sleep mode and turns on the display.