Skip to main content

Module sleep

Module sleep 

👎Deprecated:

use ql-sleep

Expand description

Sleep control.

If autosleep is enabled (set_autosleep), the system will automatically enter sleep mode after a period of inactivity. To prevent the system from sleeping, applications can create wake locks ([WakeLock]).

Structs§

WakeLockDeprecated
A wake lock that prevents the system from sleeping.

Functions§

set_autosleepDeprecated
Enables or disables autosleep.