Skip to main content

LensStudio:App

Module

The 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

EnumerationDescription
AppState-

Variables

VariableDescription
envA map containing the PATH and PWD environment variables of the current Lens Studio process.
executablePath-
onStateChangedSignal 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.
versionThe Lens Studio version.

Functions

FunctionDescription
stateReturns 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.