Barcode Pick View Highlight Style Dot With Icons
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.
- getBrushForState(state)
fun getBrushForState(state: BarcodePickState): Brush
Added in version 6.20.0
Gets the brush used for the passed pick state.
- setBrushForState(brush, state)
fun setBrushForState(brush: Brush, state: BarcodePickState)
Added in version 6.20.0
Use this method to configure the brush used for the specific pick state.
- getSelectedBrushForState(state)
fun getSelectedBrushForState(state: BarcodePickState): Brush?
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)
fun setSelectedBrushForState(brush: Brush?, state: BarcodePickState)
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)
fun setIconForState(icon: Bitmap?, state: BarcodePickState)
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)
fun setIconForState(iconResource:
Int, state: BarcodePickState)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.
- setIconForState(icon, state)
fun setIconForState(icon: ScanditIcon, state: BarcodePickState)
Added in version 7.3.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)
fun setSelectedIconForState(icon: Bitmap?, state: BarcodePickState)
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)
fun setSelectedIconForState(iconResource:
Int, state: BarcodePickState)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)
fun setSelectedIconForState(icon: ScanditIcon, state: BarcodePickState)
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()
fun toJson(): String
Added in version 6.20.0
Returns the JSON representation of this DotWithIcons.
- asyncStyleProvider
var asyncStyleProvider: BarcodePickViewHighlightStyleAsyncProvider?
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
var styleResponseCacheEnabled:
BooleanAdded in version 6.22.0
If enabled the asyncStyleProvider responses will be cached, otherwise the style will be asked every time. Defaults to true.