LensStudio:App
ModuleThe LensStudio:App module for Lens Studio plugins.
Before using anything in this namespace, make sure to import LensStudio:App.
Example
import * as app from "LensStudio:App"
const version = app.version;
Enumerations
| Enumeration | Description |
|---|---|
| AppState | - |
Variables
| Variable | Description |
|---|---|
| env | A map containing the PATH and PWD environment variables of the current Lens Studio process. |
| executablePath | - |
| onStateChanged | Signal emitted with the new AppState whenever the application-wide state of Lens Studio changes. It fires only on actual transitions, not when the state stays the same. |
| version | The Lens Studio version. |
Functions
| Function | Description |
|---|---|
| state | Returns the current application-wide state of Lens Studio. The state is re-read on every call; it is Active while any Lens Studio window, such as the main window, a floating panel, or the preview, is in front. |