StorageScope
EnumSpecifies a scope for storing or retrieving values from a MultiplayerSession.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Since Lens Scripting v148
Index
Example
var options = StorageOptions.create();
options.scope = StorageScope.Session;
Enumeration Members
Session
Session:
number
Stored values are visible and editable by any user who is using the same session. Values are stored as long as the session that corresponds to chat exists.
Since
Lens Scripting Version 148
User
User:
number
Stored variables are visible to the user only, and accessible until lens cache is cleared.
Since
Lens Scripting Version 148