MozWakeLock

The MozWakeLock interface of the Wake Lock API tracks a wake lock set on any resource set on the device.

Properties

MozWakeLock.topic Read only
Returns a DOMString with the name of the resource with a lock.

Methods

MozWakeLock.unlock()
Releases the lock on the resource. If several locks have been taken on the resource, each of them needs to be released individually.

Specification

Not part of any specification

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mozwakelock

API Firefox OS Interface Reference Wake Lock API