Interface IDocumentScannerHandle

interface IDocumentScannerHandle {
    detectAndCrop(): Promise<DocumentDetectionResult>;
    disableAutoCapture(): void;
    dispose(): void;
    enableAutoCapture(): void;
    fetchAvailableCameras(): Promise<CameraInfo[]>;
    getActiveCameraInfo(): CameraInfo;
    isAutoCaptureEnabled(): boolean;
    setTorchState(state): Promise<void>;
    swapCameraFacing(force?): void;
    switchCamera(deviceId, mirrored?): void;
}

Hierarchy

  • IScannerCommon
    • IDocumentScannerHandle

Methods

  • Returns void

  • Returns void

  • Returns void

  • Returns Promise<CameraInfo[]>

  • Returns CameraInfo

  • Returns boolean

  • Parameters

    • state: boolean

    Returns Promise<void>

  • Parameters

    • Optional force: boolean

    Returns void

  • Parameters

    • deviceId: string
    • Optional mirrored: boolean

    Returns void

Generated using TypeDoc