capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
36 lines (35 loc) • 1.14 kB
TypeScript
import { GenericDocument } from '../../documents/GenericDocument';
import type { DeepPartial } from '../../utils';
import { PartiallyConstructible } from '../../utils';
import type { BarcodeFormat } from '../barcode/BarcodeRecognizerConfiguration';
/**
Data about the scanned barcode.
*/
export declare class BarcodeItem extends PartiallyConstructible {
/**
Recognized barcode symbology.
*/
readonly type: BarcodeFormat | null;
/**
Number of recognized barcodes of this symbology and value.
*/
readonly count: number;
/**
Recognized value of the barcode.
*/
readonly text: string;
/**
Recognized barcode value with extension (if available).
*/
readonly textWithExtension: string;
/**
Representation of the raw data that is contained the recognized barcode.
*/
readonly rawBytes: string;
/**
The parsed known document format (if parsed successfully).
*/
readonly parsedDocument: GenericDocument | null;
/** @param source {@displayType `DeepPartial<BarcodeItem>`} */
constructor(source?: DeepPartial<BarcodeItem>);
}