• 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

MozWakeLock

In This Article
  1. Properties
  2. Methods
  3. Specification
  4. See also

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

  • Navigator.requestWakeLock()

Document Tags and Contributors

Tags: 
  • API
  • Firefox OS
  • Interface
  • Non Standard
  • 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