Barcode Pick View Highlight Style Dot With Icons

Note

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

Defined in package com.scandit.datacapture.barcode.pick.ui

DotWithIcons
class DotWithIcons : BarcodePickViewHighlightStyle

Added in version 6.20.0

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

DotWithIcons()
DotWithIcons()

Added in version 6.20.0

Creates a new instance with default values.

DotWithIcons()
DotWithIcons(BarcodePickIconStyle iconStyle)

Added in version 6.22.0

Creates a new instance using the specified icon style.

iconStyle
BarcodePickIconStyle getIconStyle()

Added in version 6.20.0

The selected icons style. Defaults to BarcodePickIconStyle.PRESET_1

getBrushForState(state)
@NonNull Brush getBrushForState(BarcodePickState state)

Added in version 6.20.0

Gets the brush used for the passed pick state.

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

Added in version 6.20.0

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

getSelectedBrushForState(state)
@Nullable Brush getSelectedBrushForState(BarcodePickState state)

Added in version 6.24.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)
void setSelectedBrushForState(@Nullable Brush brush,
        BarcodePickState state)

Added in version 6.24.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(icon, state)
void setIconForState(@NonNull Bitmap icon,
        BarcodePickState state)

Added in version 6.22.0

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

Note

The icon is shown with a size of 18x18 dp.

setIconForState(iconResource, state)
void setIconForState(int iconResource,
        BarcodePickState state)

Added in version 6.22.0

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

Note

The icon is shown with a size of 18x18 dp.

setSelectedIconForState(icon, state)
void setSelectedIconForState(@Nullable Bitmap icon,
        BarcodePickState state)

Added in version 6.24.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.

setSelectedIconForState(iconResource, state)
void setSelectedIconForState(int iconResource,
        BarcodePickState state)

Added in version 6.24.0

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

toJson()
@NonNull String toJson()

Added in version 6.20.0

Returns the JSON representation of this DotWithIcons.

asyncStyleProvider
@Nullable BarcodePickViewHighlightStyleAsyncProvider getAsyncStyleProvider()
void setAsyncStyleProvider(@Nullable BarcodePickViewHighlightStyleAsyncProvider value)

Added in version 6.22.0

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

styleResponseCacheEnabled
boolean getStyleResponseCacheEnabled()
void setStyleResponseCacheEnabled(boolean value)

Added in version 6.22.0

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