Interface for simplified access to preferences. The interface has a
predefined root preference branch. The root branch is set based on the
context of the owner. For example, an extension’s preferences have a root
of “extensions.
Check to see if a preference exists.
aName | The name of preference |
true if the preference exists, false if not |
Gets an object representing a preference
aName | The name of preference |
a preference object, or null if the preference does not exist |
Gets the value of a preference. Returns a default value if
the preference does not exist.
aName | The name of preference |
aDefaultValue | The value to return if preference does not exist |
value of the preference or the given default value if preference does not exists. |
Sets the value of a storage item with the given name.
aName | The name of an item |
aValue | The value to assign to the item |
Resets all preferences in a branch back to their default values.
The name of the branch root.
Array of extIPreference listing all preferences in this branch.
The events object for the preferences
supports: “change”