UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

44 lines 2.36 kB
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from xplatforms/schemas/document_scanner/Barcode.yaml import { ScanbotBarcodeImpl } from './impl'; /** * Entry point for all barcode features. */ export const ScanbotBarcode = { /** * Opens the Ready-To-Use UI screen for scanning barcodes with the desired configuration. * @param {BarcodeScannerScreenConfiguration} configuration - The Barcode scanner configuration to be used for scanning. * @returns {Promise<ResultWrapper<BarcodeScannerUiResult>>} - The result of the Barcode scanning operation. */ async startScanner(configuration) { return ScanbotBarcodeImpl.startScanner(configuration); }, /** * Scans Barcode from a given image with the desired configuration. * @param {ImageInput} params.image - The image to be used for scanning. * @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning. * @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation. */ async scanFromImage(params) { return ScanbotBarcodeImpl.scanFromImage(params); }, /** * Scans Barcode from a given PDF document with the desired configuration. * @param {string} params.pdfFileUri - The PDF file uri to be used for scanning. * @param {BarcodeScannerConfiguration} params.configuration - The Barcode scanner configuration to be used for scanning. * @returns {Promise<BarcodeScannerResult>} - The result of the Barcode scanning operation. */ async scanFromPdf(params) { return ScanbotBarcodeImpl.scanFromPdf(params); }, /** * Parses a barcode document from the given raw text content with the specified accepted formats. * @param {string} params.rawText - The raw text content representing the document to be parsed. * @param {BarcodeDocumentFormat[]} params.acceptedFormats - The list of accepted barcode document formats to be parsed. If not provided, all supported formats will be parsed. * @returns {Promise<BarcodeDocumentParserResult>} - The result of the Barcode document parsing operation. */ async parseDocument(params) { return ScanbotBarcodeImpl.parseDocument(params); }, }; //# sourceMappingURL=Barcode.js.map