Exposes User DataReadonly Exposes User DataonEvent triggered when a new camera frame is available.
Readonly Exposes User DataonEvent triggered when session status changes (interruption, disconnection).
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 DataReconfigure a dynamic parameter on a live streaming session. Only dynamic ConfigKeys (Iso, ExposureTimeNs, AeRoi) can be changed mid-stream. Static keys return Result.InvalidConfig.
Configuration key.
Configuration values array.
Result code.
Exposes User DataStart continuous frame delivery. The configured stream is opened and frames begin flowing to onNewFrame.
Stream configuration. Required on every start().
Result code. Success if the session is now running.
Exposes User DataStop the session and release the underlying camera stream. Restartable: call CameraModule.StreamingSession#start again.
Result code.
Continuous-frame camera session for Spectacles. Created via CameraModule#createStreamingSession. After CameraModule.StreamingSession#start, frames are delivered via CameraModule.StreamingSession#onNewFrame until CameraModule.StreamingSession#stop is called.
Remarks
Sessions are restartable: stop() releases the camera, start() can be called again with a new (or the same) StreamConfig.
Snap OS
Example