settings

A wrapper for the Apple TV settings object that has getters and setters using localstorage. The settings are persisted even on app exits and relaunch.
Author:
Source:

Extends

Methods

(static) get(key) → {Object|String}

Returns a value for the specified key
Source:
Parameters:
Name Type Description
key String The key
Returns:
Type:
Object | String
The stored value

(static) remove(keys)

Removes the given key(s) from the localStorage.
Source:
Parameters:
Name Type Description
keys String | Array The key(s) to remove.

(static) set(key, val)

Sets a value for the given key in the localStorage (supports storing object values). Uses LZString Compression to store significantly large amount of data.
Source:
Parameters:
Name Type Description
key String The key
val Object | String The value to store