↳ Persistent Data

AirConsole

new AirConsole(opts) → {AirConsoleObject}

Your gateway object to AirConsole. There are getter and setter functions for all properties. Do not access properties of this object directly.
Parameters:
Name Type Description
opts AirConsole~Config Constructor config, see bellow.
Source:
Returns:
The AirConsole object.
Type
AirConsoleObject

Methods

(abstract) onPersistentDataLoaded(data)

Gets called when persistent data was loaded from requestPersistentData().
Parameters:
Name Type Description
data Object An object mapping uids to all key value pairs.
Source:

requestPersistentData(uids)

Requests persistent data from the servers.
Parameters:
Name Type Description
uids Array.<String> The uids for which you would like to request the persistent data. For controllers, the default is the uid of this device. Screens must provide a valid array of uids.
Version:
  • 1.9.0 - uids is no longer optional for requests from the screen
Source: