Skip to main content

ConnectedLensModule.SessionShareType

Enum

Used by ConnectedLensModule to specify the session share type.

  • 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 v146

Index

Enumeration Members

Example

// @input Asset.ConnectedLensModule connectedLensModule

function shareSessionInvite() {
script.connectedLensModule.shareSession(ConnectedLensModule.SessionShareType.Invitation, onSessionSharedInvite);
}

function shareSessionSnapcode() {
script.connectedLensModule.shareSession(ConnectedLensModule.SessionShareType.Snapcode, onSessionSharedSnapcode);
}

Enumeration Members

Invitation

Invitation: number

Share a session by inviting your friends, launching the "send to" screen.

Since

Lens Scripting Version 146


Snapcode

Snapcode: number

Share session via Snapcode that your friends can scan.

Since

Lens Scripting Version 146