• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozWakeLock
  6. MozWakeLock.topic

MozWakeLock.topic

In This Article
  1. Syntax
  2. Example
  3. Specification
  4. See also

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

  • Navigator.requestWakeLock()

Document Tags and Contributors

Tags: 
  • API
  • Firefox OS
  • MozWakeLock
  • Non Standard
  • Property
  • Read-only
  • Reference
  • Wake Lock API
 Contributors to this page: chrisdavidmills, teoli
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:09:16 AM
See also
  1. Archive