Barcode Pick View Highlight Style Rectangular With Icons
Defined in package com.scandit.datacapture.barcode.pick.ui
- RectangularWithIcons
class RectangularWithIcons : BarcodePickViewHighlightStyle
Added in version 6.19.0
A style that will draw rectangles on top of barcodes, the highlights can also have icons drawn on top.
- RectangularWithIcons()
RectangularWithIcons()Added in version 6.19.0
Creates a new instance with default values.
- getBrushForState(state)
@NonNull Brush getBrushForState(BarcodePickState state)
Added in version 6.19.0
Gets the brush used for the passed pick state.
- setBrushForState(brush, state)
voidsetBrushForState(@NonNull Brush brush, BarcodePickState state)Added in version 6.19.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)
voidsetSelectedBrushForState(@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)
voidsetIconForState(@NonNull Bitmap icon, BarcodePickState state)Added in version 6.22.0
Use this method to configure the icon used for the specific pick state.
- setIconForState(iconResource, state)
voidsetIconForState(inticonResource, BarcodePickState state)Added in version 6.22.0
Use this method to configure the icon used for the specific pick state using a resource.
- setIconForState(icon, state)
voidsetIconForState(@NonNull ScanditIcon icon, BarcodePickState state)Added in version 7.3.0
Use this method to configure the icon used for the specific pick state using a resource.
- setSelectedIconForState(icon, state)
voidsetSelectedIconForState(@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)
voidsetSelectedIconForState(inticonResource, 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.
- setSelectedIconForState(icon, state)
voidsetSelectedIconForState(@NonNull ScanditIcon icon, BarcodePickState state)Added in version 7.3.0
Use this method to configure the ScanditIcon used when items in the specific pick state are selected. Default is null for all states.
- toJson()
@NonNull String toJson()
Added in version 6.19.0
Returns the JSON representation of this RectangularWithIcons.
- asyncStyleProvider
@Nullable BarcodePickViewHighlightStyleAsyncProvider getAsyncStyleProvider()
voidsetAsyncStyleProvider(@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
booleangetStyleResponseCacheEnabled()voidsetStyleResponseCacheEnabled(booleanvalue)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.
- statusIconSettings
@NonNull BarcodePickStatusIconSettings getStatusIconSettings()
voidsetStatusIconSettings(@NonNull BarcodePickStatusIconSettings value)Added in version 6.25.0
The settings used to customize the status icons.
- minimumHighlightWidth
intgetMinimumHighlightWidth()voidsetMinimumHighlightWidth(intvalue)Added in version 6.25.0
Minimum width for the highlights. Default is 40dp.
- minimumHighlightHeight
intgetMinimumHighlightHeight()voidsetMinimumHighlightHeight(intvalue)Added in version 6.25.0
Minimum height for the highlights. Default is 40dp.