The selection overlay configuration.

interface SelectionOverlayConfig {
    automaticSelectionEnabled?: boolean;
    barcodeItemOverlayViewBinder?: ((barcodeItem) => BarcodeItemOverlayViewConfig | Promise<BarcodeItemOverlayViewConfig>);
    loadingTextValue?: string;
    overlayEnabled?: boolean;
    polygonColor?: ColorValue;
    strokeColor?: ColorValue;
    textColor?: ColorValue;
    textContainerColor?: ColorValue;
    textFormat?: BarcodeOverlayTextFormat;
}

Properties

automaticSelectionEnabled?: boolean

Whether the barcode is highlighted automatically when being detected or not.

barcodeItemOverlayViewBinder?: ((barcodeItem) => BarcodeItemOverlayViewConfig | Promise<BarcodeItemOverlayViewConfig>)

Callback that configures the selection overlay for each barcode item individually.

loadingTextValue?: string

Only used if the barcodeItemOverlayViewBinder callback is set.

overlayEnabled?: boolean

Whether the barcode selection overlay is enabled or not.

polygonColor?: ColorValue

The color of the polygon in the selection overlay.

strokeColor?: ColorValue

The color of the polygon border.

textColor?: ColorValue

The color of the text in the selection overlay.

textContainerColor?: ColorValue

The color of the texts background in the selection overlay.

Define the way of how to show barcode data with selection overlay.