Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozWakeLock.topic

The MozWakeLock.topic read-only property returns a DOMString with the name of the resource locked.

Gaia uses three basic resource names that can be used as topic: screen, cpu, and wifi, but any certified application can expose new resources.

Syntax

name = lock.topic;

Example

var lock = window.navigator.requestWakeLock('screen');
console.log(lock.topic); // return 'screen'

Specification

Not part of any specification

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli
 Last updated by: chrisdavidmills,