Module: SettingsCache

SettingsCache is a singleton that caches mozSettings values for fast access.

Source:

Methods

addEventListener(eventName, callback)

Parameters:
Name Type Description
eventName String
callback function
Source:

getSettings(callback)

Where callback is a function to be called with a request object for a successful fetch of settings values, when those values are ready.

Where callback is a function to be called with a request object for a successful fetch of settings values, when those values are ready.

Parameters:
Name Type Description
callback function
Source:

removeEventListener(eventName, callback)

Parameters:
Name Type Description
eventName String
callback function
Source:

Events

settingsChange

Event reporting that a setting value is changed.

Event reporting that a setting value is changed.

Properties:
Name Type Description
event MozSettingsEvent
Source: