request method
The request()
method of the WakeLock interface returns a Promise
that fullfills with a WakeLockSentinel object if the system screen wake
lock is granted.
The screen wake lock prevents device screens from dimming or locking when an application needs to keep running.
Implementation
external JSPromise<WakeLockSentinel> request([WakeLockType type]);