Prevents device screens from dimming or locking when an application needs to keep running.
Documentation WakeLock by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Methods
request(?type:WakeLockType):Promise<WakeLockSentinel>
Returns a Promise
that resolves with a WakeLockSentinel
object, which allows control over screen dimming and locking.