Skip to main content

Global Properties

Properties accessible from the global object.

Properties

static global.deviceInfoSystem : DeviceInfoSystem

Returns the global DeviceInfoSystem, which provides information about the device running the Lens.


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.textInputSystem : TextInputSystem


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.


Examples

var scene = global.scene;
Was this page helpful?
Yes
No