Networking
HTTP requests, sockets and servers, WebSockets, and remote services.
Commonly used
LensStudio:NetworkBefore using anything in this namespace, make sure to import LensStudio:Network and add network in your plugin's module.json.Editor.IAuthorizationComponent that allows you to check whether Lens Studio is authorized, as well as get authorization.In PluginsLensStudio:WebSocketModule providing WebSocket client and server classes for bidirectional network communication.LensStudio:RemoteServiceModuleClass for interacting with Snap's RemoteServiceModule.
Guides
Common TasksBelow are some common tasks you might need to do while creating your plugins.Best PracticesYou can use the Yeoman Generator to accelerate your plugin development process.
All APIs in this topic
Import modules with import * as Ui from 'LensStudio:Ui'.
Components, assets, and modules
| API | Description |
|---|---|
| LensStudio:LcaUtils.js | |
| LensStudio:Network | Before using anything in this namespace, make sure to import LensStudio:Network and add network in your plugin's module.json. |
| LensStudio:RemoteMediaModule.js | |
| LensStudio:RemoteServiceModule | Class for interacting with Snap's RemoteServiceModule. |
| LensStudio:WebSocket | Module providing WebSocket client and server classes for bidirectional network communication. |
Objects and data
| API | Description |
|---|---|
| Editor.MyLenses | Namespace for Lens Studio's My Lenses account integration. |
Related topics
Files & SystemFiles and paths, processes and shells, the clipboard, storage, serialization, crypto, logging, and TypeScript compilation.User InterfaceWidgets, layouts, and dialogs for plugin panels; docking, icons, entity pickers, and editor views.PluginsPlugin types (editor, panel, dialog, project settings, URI handler, background services, presets), the plugin system and its interfaces, and plugin verification.