scandit-web-datacapture-id
Version:
Scandit Data Capture SDK for the Web
25 lines (24 loc) • 1.02 kB
TypeScript
import type { JSONType } from "scandit-web-datacapture-core";
import type { Serializable } from "scandit-web-datacapture-core/build/js/private/Serializable";
import type { IdDocumentType, IdImageType } from "./Enums";
import { SupportedSides } from "./Enums";
export interface IdCaptureSettingsJSON {
licenseKey: string;
licensee: string;
supportedDocuments: IdDocumentType[];
imageToResult: Record<string, any>;
supportedSides: SupportedSides;
properties: Record<string, JSONType>;
}
export declare class IdCaptureSettings implements Serializable<IdCaptureSettingsJSON> {
private properties;
private imageToResult;
supportedDocuments: IdDocumentType[];
supportedSides: SupportedSides;
constructor();
setProperty(name: string, value: any): void;
getProperty(name: string): any;
setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean): void;
getShouldPassImageTypeToResult(type: IdImageType): boolean;
toJSONObject(): IdCaptureSettingsJSON;
}