request

suspend fun request(type: WakeLockType = definedExternally): WakeLockSentinel(source)

The request() method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.

MDN Reference