store(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
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
Section titled “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
Section titled “Returns”this