Barcode Pick View Highlight Style Rectangular With Icons

Note

Barcode Pick is still in beta and may change in future versions of Scandit Data Capture SDK.

Defined in library scandit_datacapture_barcode_pick_ui

BarcodePickViewHighlightStyleRectangularWithIcons
class BarcodePickViewHighlightStyleRectangularWithIcons : 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.

BarcodePickViewHighlightStyleRectangularWithIcons()
BarcodePickViewHighlightStyleRectangularWithIcons()

Added in version 6.22.0

Creates a new instance with default values.

getBrushForState(state)
Brush getBrushForState(BarcodePickState state)

Added in version 6.22.0

Gets the brush used for the passed pick state.

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

Added in version 6.22.0

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

setIconForState(assetKey, state)
Future<void> setIconForState(String assetKey,
        BarcodePickState state)

Added in version 6.23.0

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

The asset key of the icon to load. For example: assets/images/picked.png.

asyncStyleProvider
BarcodePickViewHighlightStyleAsyncProvider? asyncStyleProvider

Added in version 7.3.0

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

styleResponseCacheEnabled
bool styleResponseCacheEnabled

Added in version 7.3.0

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

statusIconSettings
BarcodePickStatusIconSettings statusIconSettings

Added in version 7.3.0

The settings used to customize the status icons.

minimumHighlightWidth
int minimumHighlightWidth

Added in version 7.3.0

Minimum width for the highlights. Default is 40dp.

minimumHighlightHeight
int minimumHighlightHeight

Added in version 7.3.0

Minimum height for the highlights. Default is 40dp.