View source
class WakeLockSentinel
package js.html
extends EventTarget
import js.html.WakeLock
Available on js
Provides a handle to the underlying platform wake lock and can be manually released and reacquired.
Documentation WakeLockSentinel by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
Methods
release():Promise<Void>
Releases the WakeLockSentinel
, returning a Promise
that is resolved once the sentinel has been successfully released.