capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
18 lines • 749 B
JavaScript
import { CheckScannerUiResult, CheckScanningResult, handleImageInput, mapRTUUIResult, withSBErrorHandling, } from '../types';
import { ScanbotSDKPlugin } from './Definitions';
/**
* @internal
* @hidden
*/
export const ScanbotCheckImpl = {
async scanFromImage(params) {
return withSBErrorHandling(async () => new CheckScanningResult(await ScanbotSDKPlugin.scanCheckFromImage({
configuration: params.configuration,
image: handleImageInput(params.image),
})));
},
async startScanner(configuration) {
return withSBErrorHandling(async () => mapRTUUIResult(await ScanbotSDKPlugin.startCheckScanner(configuration), CheckScannerUiResult));
},
};
//# sourceMappingURL=CheckScannerImpl.js.map