SettingsManager

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

Provides access to the device's settings.

Properties

SettingsManager.onsettingchange
References a Handler to manage change states of settings.

Methods

SettingsManager.createLock()
Returns a SettingsLock object to safely access settings asynchronously.
SettingsManager.addObserver()
Allows to bind a function to any change on a given settings
SettingsManager.removeObserver()
Allows to unbind a function previously set with addObserver.

Specification

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

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/settingsmanager

API B2G Firefox OS Non-standard Settings