- API
- GlobalProperties
Global Properties
Properties accessible from the global
object. For example:
var scene = global.scene;
static global.launchParams
: GeneralDataStore
Returns the global GeneralDataStore
for Launch Params, which provides any special data passed in when the Lens is launched.
static global.localizationSystem
: LocalizationSystem
Returns the global LocalizationSystem, which helps convert times, dates, and other units to user friendly strings.
static global.persistentStorageSystem
: PersistentStorageSystem
Returns the global PersistentStorageSystem, which allows data to persist between Lens sessions.
static global.scene
: ScriptScene
Returns the global ScriptScene object, which offers information and controls for the current scene.
static global.touchSystem
: TouchDataProvider
Returns the global TouchDataProvider, which controls how the Lens handles touch events.
static global.userContextSystem
: UserContextSystem
Returns the global UserContextSystem, which provides information about the user such as display name, birthday, and even current weather.
Still Looking for help?
Visit Support