Skip to main content

AccountType

Enum

The kind of account backing a User.

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

Index

Enumeration Members

Example

global.userContextSystem.getCurrentUser(function (user) {
if (user.accountType === AccountType.Snapchat) {
print("Backed by a Snapchat account");
} else if (user.accountType === AccountType.Specs) {
print("Backed by a Specs account");
}
});

Enumeration Members

Snapchat

Snapchat: number

A Snapchat account.

Since

Lens Scripting Version 378


Specs

Specs: number

A Specs (Spectacles) account, which may or may not have a Snapchat account linked.

Since

Lens Scripting Version 378