Variable ScanbotBarcodeConst

ScanbotBarcode: {
    forceCloseScanner(): Promise<void>;
    parseDocument(params): Promise<BarcodeDocumentParserResult>;
    scanFromImage(params): Promise<BarcodeScannerResult>;
    scanFromPdf(params): Promise<BarcodeScannerResult>;
    startScanner(configuration): Promise<ResultWrapper<BarcodeScannerUiResult>>;
}

Entry point for all barcode features.

Type declaration

  • forceCloseScanner:function
    • Forces the Ready-To-Use UI Barcode scanner to close if it is currently open.

      Returns Promise<void>

  • parseDocument:function
    • Parses a barcode document from the given raw text content with the specified accepted formats.

      Parameters

      • params: {
            acceptedFormats?: BarcodeDocumentFormat[];
            rawText: string;
        }
        • Optional acceptedFormats?: BarcodeDocumentFormat[]

          The list of accepted barcode document formats to be parsed. If not provided, all supported formats will be parsed.

        • rawText: string

          The raw text content representing the document to be parsed.

      Returns Promise<BarcodeDocumentParserResult>

      • The result of the Barcode document parsing operation.
  • scanFromImage:function
  • scanFromPdf:function
  • startScanner:function