AccountType
EnumThe kind of account backing a User.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Since Lens Scripting v378
Index
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