• 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. MozSettingsEvent
Your Search Results

    MozSettingsEvent

    In This Article
    1. Summary
    2. Properties
    3. Example
    4. Specification
    5. See also

    This API is available on Firefox OS for internal applications only.

    SummaryEdit

    The MozSettingsEvent represents a settingchange event, providing information about a change to the value of a setting on the device. It extends the DOM Event interface.

    PropertiesEdit

    MozSettingsEvent.settingName
    A string indicating the exact name of the changed setting.
    MozSettingsEvent.settingValue
    The setting's new value.

    ExampleEdit

    This example listens for changes to settings, reporting their names and new values on the console.

    // Listen to changes on any settings
    navigator.mozSettings.onsettingchange = function (event) {
      console.log(event.settingName + ": " + event.settingValue);
    };

    SpecificationEdit

    Not part of any specification yet; however, this API will be discussed at W3C as part of the System Applications Working Group.

    See alsoEdit

    • SettingsManager
    • Settings API
    Share:
    • Twitter
    • Facebook
    • Google+

    Document Tags and Contributors

    Tags: 
    • API
    • B2G
    • Firefox OS
    • Non-standard
    • Reference
    • Référence
    • Settings
     Contributors to this page: chrisdavidmills, fscholz, MHasan, Sheppy, Jeremie
     Last updated by: chrisdavidmills, Feb 11, 2016, 6:38:04 AM
    See also
    1. Settings API
    2. MozSettingsEvent
    3. Properties
      1. settingName
      2. settingValue
    4. Inheritance:
      1. Event
    5. Events
      1. settingchange
    6. Related pages for Settings API
      1. Navigator.mozSettings
      2. SettingsLock
      3. SettingsManager

    © 2005-2016 Mozilla Developer Network and individual contributors.

    Content is available under these licenses.

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