@camera.ui/sdk / camera / SnapshotInterface
Interface: SnapshotInterface
Defined in: camera/device.ts:227
Optional implementation that provides snapshots.
Methods
snapshot()
snapshot(
sourceId,forceNew?):Promise<ArrayBuffer|undefined>
Defined in: camera/device.ts:237
Get a snapshot image from the camera.
Parameters
sourceId
string
The source ID to get the snapshot from
forceNew?
boolean
If true, bypass cache and get a fresh snapshot
Returns
Promise<ArrayBuffer | undefined>
Image data as ArrayBuffer, or undefined if unavailable