Skip to content

@camera.ui/sdk / plugin / API_EVENT

Enumeration: API_EVENT

Defined in: plugin/api.ts:7

Lifecycle events emitted on the PluginAPI EventEmitter. Plugins subscribe with api.on(API_EVENT.X, handler) to react to host-driven phase changes.

Enumeration Members

FINISH_LAUNCHING

FINISH_LAUNCHING: "finishLaunching"

Defined in: plugin/api.ts:14

Emitted exactly once after the plugin has been constructed, all assigned cameras have been wired up, and configureCameras() has returned. Use this to start background work that must wait until the camera set is stable (timers, model warm-up, outbound connections).


SHUTDOWN

SHUTDOWN: "shutdown"

Defined in: plugin/api.ts:21

Emitted when the host is tearing the plugin down (graceful stop, reload or process exit). Listeners must release resources synchronously enough to finish before the host kills the process — open files, sockets, timers, child processes.