UNPKG

react-native-scanbot-sdk

Version:

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

29 lines (27 loc) 1.08 kB
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from rtu-ui-v2/schemas/barcode/BarcodeUseCase.yaml import { FindAndPickScanningMode } from '../../ui_v2/barcode/FindAndPickScanningModeUseCase'; import { MultipleScanningMode } from '../../ui_v2/barcode/MultipleScanningModeUseCase'; import { SingleScanningMode } from '../../ui_v2/barcode/SingleScanningModeUseCase'; /** Configuration of the barcode scanner screen's behavior. */ /** @internal */ export let BarcodeUseCase; (function (_BarcodeUseCase) { function From(source) { const _type = source._type; switch (_type) { case 'SingleScanningMode': return new SingleScanningMode(source); case 'MultipleScanningMode': return new MultipleScanningMode(source); case 'FindAndPickScanningMode': return new FindAndPickScanningMode(source); default: throw `Unknown child class name: ${_type}`; } } _BarcodeUseCase.From = From; })(BarcodeUseCase || (BarcodeUseCase = {})); //# sourceMappingURL=BarcodeUseCase.js.map