Namespace SSB.prefs
SSB preferences object. Manages a persistent collection of key/value pairs. These help you maintain context between sessions.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
SSB.prefs.clear()
Clears all the prefs for this bubble
|
| <static> {Object} |
SSB.prefs.getValue(key)
Get value by key
|
| <static> {void} |
SSB.prefs.setValue(key, value)
Set key/value
|
Method Detail
<static>
SSB.prefs.clear()
Clears all the prefs for this bubble
<static>
{Object}
SSB.prefs.getValue(key)
Get value by key
- Parameters:
- {String} key
- Variable name as set using SSB.prefs.setValue.
- Returns:
- {Object} variable Value
<static>
{void}
SSB.prefs.setValue(key, value)
Set key/value
- Parameters:
- {String} key
- {Object} value
- (will be converted to JSON)
- Returns:
- {void}