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 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.
- RectangularWithIcons()
RectangularWithIcons(BarcodePickIconStyle iconStyle)
Added in version 6.22.0
Creates a new instance using the specified icon style.
- iconStyle
BarcodePickIconStyle getIconStyle()
Added in version 6.19.0
The selected icons style. Defaults to BarcodePickIconStyle.PRESET_1
- 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)
void
setBrushForState(@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)
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.19.0
Returns the JSON representation of this RectangularWithIcons.
- 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.
- statusIconSettings
@NonNull BarcodePickStatusIconSettings getStatusIconSettings()
void
setStatusIconSettings(@NonNull BarcodePickStatusIconSettings value)Added in version 6.25.0
The settings used to customize the status icons.
- minimumHighlightWidth
int
getMinimumHighlightWidth()void
setMinimumHighlightWidth(int
value)Added in version 6.25.0
Minimum width for the highlights. Default is 40dp.
- minimumHighlightHeight
int
getMinimumHighlightHeight()void
setMinimumHighlightHeight(int
value)Added in version 6.25.0
Minimum height for the highlights. Default is 40dp.