| Name | Description |
|---|---|
| getItem | Returns stored item by name |
| setItem | Saves named item |
| removeItem | Removes item by name |
| getKeys | Returns array of item names |
| clear | Delete all the items |
Returns item stored by name or null if item does not exist.
| Arguments: |
|
|---|---|
| Return type: | variant |
Example:
var homeUrl = kango.storage.getItem('home_url');
kango.console.log('stored value for homeUrl is ' + homeUrl);
Saves an item with specified name.
| Arguments: |
|
|---|
Example:
kango.storage.setItem('height', 176);
var storedHeight = kango.storage.getItem('height');
kango.console.log('stored height is ' + storedHeight );
Removes item with specified name.
| Arguments: |
|
|---|
Example:
kango.storage.setItem('height', 176);
var storedHeight = kango.storage.getItem('height');
kango.console.log('stored height is ' + storedHeight );
kango.storage.removeItem('height');
storedHeight = kango.storage.getItem('height'); // null