Exposes User DataReadonly Exposes User DataonEvent triggered when session status changes (interruption, disconnection).
Exposes User DataTrigger a single still capture. Returns a Promise that resolves with the captured CameraModule.Frame once the frame is delivered (typically within a few hundred ms on a pre-warmed session).
Only one capture may be in flight per session: await the returned Promise before calling capture() again.
The Promise rejects when:
If the camera service delivers a frame whose image data cannot be read, the Promise still resolves, with a Frame whose CameraModule.Frame#texture is null and CameraModule.Frame#imageData is empty — check for a null texture before using the result.
Optionaloverrides: StreamConfigOverridesOptional per-shot overrides (e.g. crop region). Pass null or omit to use the session's defaults; an empty overrides object does not clear the session's crop.
Promise resolving with the captured Frame.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Exposes User DataPre-warm the capture pipeline. Call early (e.g. on Lens load) for low shutter latency. No frames are delivered until CameraModule.CaptureSession#capture is invoked.
Stream configuration. The .crop field on config is used as the default crop for subsequent captures unless overridden.
Result code.
Exposes User DataStop the session and release the underlying capture pipeline. Restartable: call CameraModule.CaptureSession#start again.
Result code.
Still-capture camera session for Spectacles. Created via CameraModule#createCaptureSession. After CameraModule.CaptureSession#start pre-warms the pipeline, individual snapshots are triggered with CameraModule.CaptureSession#capture, which returns a Promise that resolves with the captured Frame.
Remarks
Pre-warming has meaningful latency (~1-2s for ISP init) — start the capture session early (e.g. on Lens load) for low shutter latency.
Sessions are restartable: stop() releases the camera, start() can be called again with a new (or the same) StreamConfig.
Snap OS
Example