capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
23 lines • 806 B
JavaScript
import { withSBErrorHandling } from '../types';
import { ScanbotSDKPlugin } from './Definitions';
/**
* @internal
* @hidden
*/
export const ScanbotLegacyPageImpl = {
async removePage(page) {
return withSBErrorHandling(() => ScanbotSDKPlugin.removeLegacyPage({ page: page }));
},
async removeAllPages() {
return withSBErrorHandling(() => ScanbotSDKPlugin.removeAllLegacyPages());
},
async setDocumentImage(params) {
return withSBErrorHandling(() => ScanbotSDKPlugin.setDocumentImageOnLegacyPage(params));
},
async refreshImageUris(pages) {
return withSBErrorHandling(async () => {
return (await ScanbotSDKPlugin.refreshImageUrisOnLegacyPage({ pages: pages })).result;
});
},
};
//# sourceMappingURL=LegacyPageImpl.js.map