@camera.ui/sdk / camera / SnapshotInterface
Interface: SnapshotInterface
Defined in: camera/device.ts:252
Methods
snapshot()
snapshot(
sourceId,forceNew?):Promise<ArrayBuffer|undefined>
Defined in: camera/device.ts:262
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