Namespace Local
Defined in: gamelib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Local.get(key)
Retrieve an object from local storage.
|
<static> |
Local.new(prefix)
Access an instance of Local with a specified prefix.
|
<static> |
Local.set(key, value)
Store an object in local storage.
|
Method Detail
<static>
{Object}
Local.get(key)
Retrieve an object from local storage.
- Parameters:
- {String} key
- Returns:
- The object that was stored or undefined if no object was stored.
Access an instance of Local with a specified prefix.
- Parameters:
- {String} prefix
- Returns:
- An interface to local storage with the given prefix applied.
<static>
{Object}
Local.set(key, value)
Store an object in local storage.
- Parameters:
- {String} key
- {Object} value
- Returns:
- value