ReadonlyreleasedThe released read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released.
ReadonlytypeThe type read-only property of the WakeLockSentinel interface returns a string representation of the currently acquired WakeLockSentinel type.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The release() method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
The
WakeLockSentinelinterface of the Screen Wake Lock API can be used to monitor the status of the platform screen wake lock, and manually release the lock when needed. Available only in secure contexts.MDN Reference