Attributes | Name and Description |
---|---|
|
caplin.services.PreferencesService()
|
Attributes | Name and Description |
---|---|
|
String
getPreference(String sPreferenceKey)
Returns the user preference. |
|
Map
getPreferences()
Returns a map of preferences that the user has set either within the current session or in a previous session. |
|
void
removePreference(String sPreferenceKey)
Deletes the user preference. |
|
void
savePreferences()
Persists the current user preferences. |
|
void
setPreference(String sPreferenceKey, String sPreferenceValue)
Sets the user preference. |
|
void
setPreferences(Map mPreferences)
Sets user preferences from a map of preference names to preference values. |
►
caplin.services.PreferencesService()
►
String
getPreference(String sPreferenceKey)
Returns the user preference.
String | sPreferenceKey | string preference key |
►
Map
getPreferences()
Returns a map of preferences that the user has set either within the current session or in a previous session.
►
void
removePreference(String sPreferenceKey)
Deletes the user preference.
String | sPreferenceKey | The preference to remove. |
►
void
savePreferences()
Persists the current user preferences.
►
void
setPreference(String sPreferenceKey, String sPreferenceValue)
Sets the user preference.
String | sPreferenceKey | The preference key to set |
String | sPreferenceValue | The value to set. |
►
void
setPreferences(Map mPreferences)
Sets user preferences from a map of preference names to preference values.
Map | mPreferences | the map of preferences names to values |