UNPKG

@scandit/web-datacapture-id

Version:

Scandit Data Capture SDK for the Web

12 lines (11 loc) 621 B
import type { IdCapture } from "./IdCapture"; import type { IdCaptureError } from "./IdCaptureError"; import type { RejectionReason } from "./RejectionReason"; import type { CapturedId } from "./captured-id/CapturedId"; import type { LocalizedOnlyId } from "./captured-id/LocalizedOnlyId"; export interface Listener { didCaptureId?: (capturedId: CapturedId) => Promise<void> | void; didRejectId?: (capturedId: CapturedId, reason: RejectionReason) => Promise<void> | void; didFailWithError?: (idCapture: IdCapture, error: IdCaptureError) => void; didLocalizeId?: (localization: LocalizedOnlyId) => void; }