WakeLock

external class WakeLock(source)

Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard
suspend fun request(type: WakeLockType = definedExternally): WakeLockSentinel
Link copied to clipboard
fun requestAsync(type: WakeLockType = definedExternally): Promise<WakeLockSentinel>