global
NamespaceNamespace in the Lens Scripting API.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Variables
| Variable | Description |
|---|---|
| debugRenderSystem | Returns the DebugRender, which provides methods to draw primitive visuals for debugging. |
| deviceInfoSystem | Returns the global DeviceInfoSystem, which provides information about the device running the Lens. |
| hapticFeedbackSystem | Returns the HapticFeedbackSystem, which provides methods to trigger the device's haptic system. |
| launchParams | Returns the global GeneralDataStore for Launch Params, which provides any special data passed in when the Lens is launched. |
| localizationSystem | Returns the global LocalizationSystem, which helps convert times, dates, and other units to user friendly strings. |
| persistentStorageSystem | Returns the global PersistentStorageSystem, which allows data to persist between Lens sessions. |
| scene | Returns the global ScriptScene object, which offers information and controls for the current scene. |
| textInputSystem | Returns the TextInputSystem, which provides methods to access the device's keyboard and typing systems. and typing systems. |
| touchSystem | Returns the global TouchDataProvider, which controls how the Lens handles touch events. |
| userContextSystem | Returns the global UserContextSystem, which provides information about the user such as display name, birthday, and even current weather. |