UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

75 lines (72 loc) • 1.72 kB
import { RecognizedDataType, scannerConfiguration } from "./configuration.mjs"; var DataScannerViewController = class { static isSupported = false; static isAvailable = false; static supportedTextRecognitionLanguages = []; static RecognizedDataType = RecognizedDataType; configuration; delegate = null; regionOfInterest; constructor(options) { this.configuration = scannerConfiguration(options); } get recognizedDataTypes() { return this.configuration.recognizedDataTypes; } get qualityLevel() { return this.configuration.qualityLevel; } get recognizesMultipleItems() { return this.configuration.recognizesMultipleItems; } get isHighFrameRateTrackingEnabled() { return this.configuration.isHighFrameRateTrackingEnabled; } get isPinchToZoomEnabled() { return this.configuration.isPinchToZoomEnabled; } get isGuidanceEnabled() { return this.configuration.isGuidanceEnabled; } get isHighlightingEnabled() { return this.configuration.isHighlightingEnabled; } unavailable() { throw new Error("DataScannerViewController needs an iOS build"); } get isScanning() { return false; } get minZoomFactor() { return this.unavailable(); } get maxZoomFactor() { return this.unavailable(); } get zoomFactor() { return this.unavailable(); } set zoomFactor(_value) { this.unavailable(); } get recognizedItems() { return this.unavailable(); } async present(_animated = true) { this.unavailable(); } async dismiss(_animated = true) { this.unavailable(); } startScanning() { this.unavailable(); } stopScanning() { this.unavailable(); } async capturePhoto() { this.unavailable(); } }; export { DataScannerViewController }; //# sourceMappingURL=index.mjs.map