WakeLockSentinel

The WakeLockSentinel interface 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

Properties

Link copied to clipboard

The released read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released.

Link copied to clipboard

The type read-only property of the WakeLockSentinel interface returns a string representation of the currently acquired WakeLockSentinel type.

Functions

Link copied to clipboard
Link copied to clipboard
inline suspend fun WakeLockSentinel.release()

The release() method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.

Link copied to clipboard

The release() method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.

Link copied to clipboard