interface TakeSnapshotOptions {
    path?: string;
    quality?: number;
}

Properties

Properties

path?: string

A custom path where the snapshot will be saved to.

This must be a directory, as VisionCamera will generate a unique filename itself. If the given directory does not exist, this method will throw an error.

By default, VisionCamera will use the device's temporary directory.

quality?: number

Specify a quality for the JPEG encoding of the snapshot.

Default

100