UNPKG

react-native-scanbot-barcode-scanner-sdk

Version:

Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS

51 lines (50 loc) 1.94 kB
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from xplatforms/schemas/barcode_scanner/Sdk.yaml import { ScanbotBarcode } from './Barcode'; import { ScanbotImageProcessor } from './ImageProcessor'; import { ScanbotBarcodeSdkImpl } from './impl'; /** * Entry point for all features that are part of Scanbot Barcode Scanner SDK. */ export const ScanbotBarcodeSdk = { /** * Used for barcode scanning features. */ Barcode: ScanbotBarcode, /** * Used for image processing features. */ 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 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 ScanbotBarcodeSdkImpl.initialize(configuration); }, /** * Provides complete information about the current license. * @returns {Promise<LicenseInfo>} - Returns complete information about the current license. */ async getLicenseInfo() { return ScanbotBarcodeSdkImpl.getLicenseInfo(); }, /** * Cleans up the storage used by the Scanbot SDK. * @returns {Promise<void>} */ async cleanupStorage() { return ScanbotBarcodeSdkImpl.cleanupStorage(); } }; //# sourceMappingURL=Sdk.js.map