UNPKG

react-native-scanbot-barcode-scanner-sdk

Version:

Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS

57 lines (55 loc) 2.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScanbotBarcodeSdk = void 0; var _Barcode = require("./Barcode"); var _ImageProcessor = require("./ImageProcessor"); var _impl = require("./impl"); /// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from xplatforms/schemas/barcode_scanner/Sdk.yaml /** * Entry point for all features that are part of Scanbot Barcode Scanner SDK. */ const ScanbotBarcodeSdk = exports.ScanbotBarcodeSdk = { /** * Used for barcode scanning features. */ Barcode: _Barcode.ScanbotBarcode, /** * Used for image processing features. */ ImageProcessor: _ImageProcessor.ScanbotImageProcessor, /** * Mock camera preview by using static images as a frame source. This is useful for testing purposes. * @param {string} params.imageFileUri - The file uri of the image to be used as a mock camera frame. * @param {boolean} params.refreshOnEachFrame - If true, the mock camera will refresh the frame on each request, simulating a live camera feed. Default is false * @returns {Promise<void>} */ async mockCamera(params) { return _impl.ScanbotBarcodeSdkImpl.mockCamera(params); }, /** * Initializes the Scanbot SDK with the preferred configuration. * @param {SdkConfiguration} configuration - The SDK configuration to be used for initialization. * @returns {Promise<LicenseInfo>} - Returns complete information about the license used for initialization. */ async initialize(configuration) { return _impl.ScanbotBarcodeSdkImpl.initialize(configuration); }, /** * Provides complete information about the current license. * @returns {Promise<LicenseInfo>} - Returns complete information about the current license. */ async getLicenseInfo() { return _impl.ScanbotBarcodeSdkImpl.getLicenseInfo(); }, /** * Cleans up the storage used by the Scanbot SDK. * @returns {Promise<void>} */ async cleanupStorage() { return _impl.ScanbotBarcodeSdkImpl.cleanupStorage(); } }; //# sourceMappingURL=Sdk.js.map