UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

34 lines (33 loc) 1.6 kB
import { BarcodeCapture } from "./BarcodeCapture.js"; import { Brush, BrushJSON, DataCaptureOverlay, DataCaptureView, Viewfinder, ViewfinderJSON } from "@scandit/web-datacapture-core"; import { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable"; //#region src/main/BarcodeCaptureOverlay.d.ts interface BarcodeCaptureOverlayJSON { brush: BrushJSON; drawLocalizedOnlyBarcodes: boolean; shouldShowScanAreaGuides: boolean; shouldRemoveLocationsAfterScan: boolean; type: "barcodeCapture"; viewfinder: ViewfinderJSON; } declare class BarcodeCaptureOverlay implements DataCaptureOverlay, Serializable<BarcodeCaptureOverlayJSON> { private readonly type; private _brush; private _shouldShowScanAreaGuides; private _shouldRemoveLocationsAfterScan; private _viewfinder; private barcodeCapture; static withBarcodeCapture(barcodeCapture: BarcodeCapture): Promise<BarcodeCaptureOverlay>; static withBarcodeCaptureForView(barcodeCapture: BarcodeCapture, view: DataCaptureView | null): Promise<BarcodeCaptureOverlay>; getBrush(): Brush; getViewfinder(): Viewfinder | null; setBrush(brush: Brush): Promise<void>; setShouldShowScanAreaGuides(shouldShowScanAreaGuides: boolean): Promise<void>; setShouldRemoveLocationsAfterScan(shouldRemoveLocationsAfterScan: boolean): Promise<void>; setViewfinder(viewfinder: Viewfinder | null): Promise<void>; shouldShowScanAreaGuides(): boolean; shouldRemoveLocationsAfterScan(): boolean; toJSONObject(): BarcodeCaptureOverlayJSON; } //#endregion export { BarcodeCaptureOverlay, BarcodeCaptureOverlayJSON };