UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

33 lines (32 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BarcodeUseCase = void 0; var _FindAndPickScanningModeUseCase = require("../../ui_v2/barcode/FindAndPickScanningModeUseCase"); var _MultipleScanningModeUseCase = require("../../ui_v2/barcode/MultipleScanningModeUseCase"); var _SingleScanningModeUseCase = require("../../ui_v2/barcode/SingleScanningModeUseCase"); /// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from rtu-ui-v2/schemas/barcode/BarcodeUseCase.yaml /** Configuration of the barcode scanner screen's behavior. */ /** @internal */ let BarcodeUseCase = exports.BarcodeUseCase = void 0; (function (_BarcodeUseCase) { function From(source) { const _type = source._type; switch (_type) { case 'SingleScanningMode': return new _SingleScanningModeUseCase.SingleScanningMode(source); case 'MultipleScanningMode': return new _MultipleScanningModeUseCase.MultipleScanningMode(source); case 'FindAndPickScanningMode': return new _FindAndPickScanningModeUseCase.FindAndPickScanningMode(source); default: throw `Unknown child class name: ${_type}`; } } _BarcodeUseCase.From = From; })(BarcodeUseCase || (exports.BarcodeUseCase = BarcodeUseCase = {})); //# sourceMappingURL=BarcodeUseCase.js.map