Interface Configuration

BarcodeReader configuration object.

interface Configuration {
    engine?: EngineConfiguration;
    feedback?: FeedbackConfiguration;
    frameSource?: FrameSourceConfiguration;
    locator?: LocatorConfiguration;
    mode?: "immediate" | "touch";
    overlay?: OverlayConfiguration;
    selector: string | HTMLElement;
}

Properties

Engine configuration

Feedback configuration

Frame source configuration

Locator configuration

mode?: "immediate" | "touch"

Mode: can be 'immediate' (default) for always-on scanning, and 'touch', to only scan when a touch occurs.

Default Value

immediate

Overlay configuration

selector: string | HTMLElement

CSS Selector or reference to the HTML element that will host the visible elements of the BarcodeReader.

Remarks

When using a selector, make sure the selector only matches a single element, e.g. by using an ID.

Generated using TypeDoc