Interface WakeLock.WakeLockJs
- All Superinterfaces:
Serializable
- Enclosing class:
WakeLock
What a wake lock asks of its client-side bridge, as a JavaScript
definition for
Element.executeJs(Class).- Since:
- 25.4
-
Method Details
-
request
Asks the browser to hold the wake lock on behalf of the UI.- Returns:
- the pending result, which answers with what the browser made of the request
-
release
Releases the wake lock the browser holds on behalf of the UI.- Returns:
- the pending result, which completes once the browser has let the lock go
-