ScanbotBarcodeSdk: {
    Barcode: {
        parseDocument(params): Promise<BarcodeDocumentParserResult>;
        scanFromImage(params): Promise<BarcodeScannerResult>;
        scanFromPdf(params): Promise<BarcodeScannerResult>;
        startScanner(configuration): Promise<ResultWrapper<BarcodeScannerUiResult>>;
    };
    ImageProcessor: {
        readImageData(imageFileUri): Promise<string>;
    };
    cleanupStorage(): Promise<void>;
    getLicenseInfo(): Promise<LicenseInfo>;
    initialize(configuration): Promise<LicenseInfo>;
    mockCamera(params): Promise<void>;
}

Entry point for all features that are part of Scanbot Barcode Scanner SDK.

Type declaration

  • Barcode: {
        parseDocument(params): Promise<BarcodeDocumentParserResult>;
        scanFromImage(params): Promise<BarcodeScannerResult>;
        scanFromPdf(params): Promise<BarcodeScannerResult>;
        startScanner(configuration): Promise<ResultWrapper<BarcodeScannerUiResult>>;
    }

    Used for barcode scanning features.

  • ImageProcessor: {
        readImageData(imageFileUri): Promise<string>;
    }

    Used for image processing features.

    • readImageData:function
      • Parameters

        • imageFileUri: string

        Returns Promise<string>

  • cleanupStorage:function
    • Cleans up the storage used by the Scanbot SDK.

      Returns Promise<void>

  • getLicenseInfo:function
    • Provides complete information about the current license.

      Returns Promise<LicenseInfo>

      • Returns complete information about the current license.
  • initialize:function
    • Initializes the Scanbot SDK with the preferred configuration.

      Parameters

      • configuration: SdkConfiguration

        The SDK configuration to be used for initialization.

      Returns Promise<LicenseInfo>

      • Returns complete information about the license used for initialization.
  • mockCamera:function
    • Mock camera preview by using static images as a frame source. This is useful for testing purposes.

      Parameters

      • params: {
            imageFileUri: string;
            refreshOnEachFrame?: boolean;
        }
        • imageFileUri: string

          The file uri of the image to be used as a mock camera frame.

        • Optional refreshOnEachFrame?: boolean

          If true, the mock camera will refresh the frame on each request, simulating a live camera feed. Default is false

      Returns Promise<void>