Barcode Pick View Highlight Style Rectangular With Icons

Defined under the namespace Scandit.Datacapture.Barcode.Pick.Ui

RectangularWithIcons
class RectangularWithIcons : BarcodePickViewHighlightStyle

Added in version 6.22.0

A style that will draw rectangles on top of barcodes, the highlights can also have icons drawn on top.

constructor()
constructor()

Added in version 6.22.0

Creates a new instance with default values.

getBrushForState(state)
getBrushForState(state: BarcodePickState): Brush

Added in version 6.22.0

Gets the brush used for the passed pick state.

setBrushForState(brush, state)
setBrushForState(brush: Brush,
        state: BarcodePickState): void

Added in version 6.22.0

Use this method to configure the brush used for the specific pick state.

getSelectedBrushForState(state)
getSelectedBrushForState(state: BarcodePickState): Brush | null

Added in version 8.2.0

Gets the brush used when items in the passed pick state are selected. If null, selected items are drawn with the same brush as non-selected items in the same state. Default is null for all states.

setSelectedBrushForState(brush, state)
setSelectedBrushForState(brush: Brush | null,
        state: BarcodePickState): void

Added in version 8.2.0

Use this method to configure the brush used when items in the specific pick state are selected. Pass null to draw selected items with the same brush as non-selected items in the same state.

setIconForState(image, state)
setIconForState(image: string,
        state: BarcodePickState): void

Added in version 6.23.0

Use this method to configure the icon used for the specific pick state.

A base64 encoded image string. For example: data:image/png;base64,iVBORw0KGgoAAAANS….

setIconForStateWithScanditIcon(icon, state)
setIconForStateWithScanditIcon(icon: ScanditIcon,
        state: BarcodePickState): void

Added in version 8.2.0

Use this method to configure the icon used for the specific pick state using a resource.

setSelectedIconForState(icon, state)
setSelectedIconForState(icon: string | null,
        state: BarcodePickState): void

Added in version 8.2.0

Use this method to configure the icon used when items in the specific pick state are selected. If null, selected items use the same icon as non-selected items in the same state. Default is null for all states.

setSelectedIconForStateWithScanditIcon(icon, state)
setSelectedIconForStateWithScanditIcon(icon: ScanditIcon | null,
        state: BarcodePickState): void

Added in version 8.2.0

Use this method to configure the ScanditIcon used when items in the specific pick state are selected. Default is null for all states.

asyncStyleProvider
asyncStyleProvider: BarcodePickViewHighlightStyleAsyncProvider | null

Added in version 8.2.0

Set a delegate to override asynchronously the style of the highlights depending on each item’s code and state.

styleResponseCacheEnabled
styleResponseCacheEnabled: boolean

Added in version 8.2.0

If enabled the asyncStyleProvider responses will be cached, otherwise the style will be asked every time. Defaults to true.

statusIconSettings
statusIconSettings: BarcodePickStatusIconSettings

Added in version 6.28.0

The settings used to customize the status icons.

minimumHighlightWidth
minimumHighlightWidth: number

Added in version 6.28.0

Minimum width for the highlights. Default is 40dp.

minimumHighlightHeight
minimumHighlightHeight: number

Added in version 6.28.0

Minimum height for the highlights. Default is 40dp.