store(...)
store(key: string, data: any): this;
Stores the supplied object on the device such that it can be accessed during a future execution of the experience.
Retrieve stored values using the retrieve(...) function.
Parameters
Parameter | Type | Description |
---|---|---|
key | string | The name to store the value under. |
data | JSON-compatible object | The data to store. The passed value must be possible to serialize with JSON.stringify . |
Returns
this