Interface IBarcodeScannerHandle

interface IBarcodeScannerHandle {
    dispose(): void;
    fetchAvailableCameras(): Promise<CameraInfo[]>;
    getActiveCameraInfo(): CameraInfo;
    getCapabilities(): MediaTrackCapabilities;
    getResolution(): Promise<Size>;
    isDetectionPaused(): boolean;
    pauseDetection(): void;
    resumeDetection(): void;
    saveExtractedImageData(): void;
    setFinderVisible(isVisible): void;
    setRecognitionResolution(resolution): void;
    setTorchState(state): Promise<void>;
    setZoom(zoom): void;
    swapCameraFacing(force?): void;
    switchCamera(deviceId, mirrored?): void;
    updateTorch(enabled): void;
}

Hierarchy

  • IScannerCommon
    • IBarcodeScannerHandle

Methods

  • Returns void

  • Returns Promise<CameraInfo[]>

  • Returns CameraInfo

  • Returns MediaTrackCapabilities

  • Returns Promise<Size>

  • Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • isVisible: boolean

    Returns void

  • Parameters

    • resolution: number

    Returns void

  • Parameters

    • state: boolean

    Returns Promise<void>

  • Parameters

    • zoom: number

    Returns void

  • Parameters

    • Optional force: boolean

    Returns void

  • Parameters

    • deviceId: string
    • Optional mirrored: boolean

    Returns void

  • Parameters

    • enabled: boolean

    Returns void

Generated using TypeDoc