react-native-scanbot-barcode-scanner-sdk
Version:
Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS
51 lines (49 loc) • 2.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ScanbotBarcode = void 0;
var _impl = require("./impl");
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from xplatforms/schemas/barcode_scanner/Barcode.yaml
/**
* Entry point for all barcode features.
*/
const ScanbotBarcode = exports.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 _impl.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 _impl.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 _impl.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 _impl.ScanbotBarcodeImpl.parseDocument(params);
}
};
//# sourceMappingURL=Barcode.js.map