UNPKG

@scandit/web-datacapture-id

Version:

Scandit Data Capture SDK for the Web

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