Global

Methods

newPreference(key, defaultValueopt, allowedValuesopt) → {Preference}

Create a {Preference} instance for the specified key.
Parameters:
Name Type Attributes Description
key string The key name. Use dot separated naming convention to create a key hierarchy (ala Log4J).
defaultValue string <optional>
The default value we want to use if nothing is set
allowedValues Array <optional>
Array of known supported values
Source:
Returns:
The {Preference} instance.
Type
Preference

newPreferences(preferencesArray) → {Preferences}

Create a Preference and return this config
Parameters:
Name Type Description
preferencesArray the preferences that we want to sync with the local storage
Source:
Returns:
Type
Preferences