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.

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.

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.