Skip to main content

StorageScope

Enum

Specifies 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.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v148

Index

Enumeration Members

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