• Skip to main content
  • Select language
  • Skip to search
mozilla
Mozilla Developer Network
  • Sign in
    • Persona
    • GitHub
  • Web Platform
    Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • APIs / DOM
    • Apps
    • MathML
    References & Guides
    • Learn the Web
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • ...more docs
  • Mozilla Docs
    • Add-ons
    • Firefox
    • Firefox Marketplace
    • Firefox OS
    • Persona
  • Developer Tools
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
  •  
B2G OS
    • No translations exist for this article.
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article
  1. MDN
  2. Mozilla
  3. B2G OS
  4. Firefox OS APIs
  5. MozWakeLock
Your Search Results

    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()
    Share:
    • Twitter
    • Facebook
    • Google+

    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 11, 2016, 6:50:58 AM
    See also
    1. MozWakeLock
    2. Properties
      1. topic
    3. Methods
      1. unlock()

    © 2005-2016 Mozilla Developer Network and individual contributors.

    Content is available under these licenses.

    • About MDN
    • Terms
    • Privacy
    • Cookies
    • Contribute to the code