request

inline suspend fun WakeLock.request(): 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