Barcode Pick View Highlight Style Dot With Icons
Defined under the namespace Scandit.Datacapture.Barcode.Pick.Ui
- DotWithIcons
class DotWithIcons : BarcodePickViewHighlightStyle
Added in version 6.23.0
A style that will draw dots on top of barcodes, the highlights also have icons drawn on top.
- constructor()
constructor()Added in version 6.23.0
Creates a new instance with default values.
- getBrushForState(state)
getBrushForState(state: BarcodePickState): Brush
Added in version 6.23.0
Gets the brush used for the passed pick state.
- setBrushForState(brush, state)
setBrushForState(brush: Brush, state: BarcodePickState):
voidAdded in version 6.23.0
Use this method to configure the brush used for the specific pick state.
- getSelectedBrushForState(state)
getSelectedBrushForState(state: BarcodePickState): Brush | null
Added in version 8.2.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)
setSelectedBrushForState(brush: Brush | null, state: BarcodePickState):
voidAdded in version 8.2.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(image, state)
setIconForState(image: string, state: BarcodePickState):
voidAdded in version 6.23.0
Use this method to configure the icon used for the specific pick state.
A base64 encoded image string. For example: iVBORw0KGgoAAAANS….
Note
The icon is shown with a size of 18x18 dp.
- setIconForStateWithScanditIcon(icon, state)
setIconForStateWithScanditIcon(icon: ScanditIcon, state: BarcodePickState):
voidAdded in version 8.2.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)
setSelectedIconForState(icon: string |
null, state: BarcodePickState):voidAdded in version 8.2.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.
A base64 encoded image string. For example: iVBORw0KGgoAAAANS….
- setSelectedIconForStateWithScanditIcon(icon, state)
setSelectedIconForStateWithScanditIcon(icon: ScanditIcon |
null, state: BarcodePickState):voidAdded in version 8.2.0
Use this method to configure the ScanditIcon used when items in the specific pick state are selected. Default is null for all states.
- asyncStyleProvider
asyncStyleProvider: BarcodePickViewHighlightStyleAsyncProvider | null
Added in version 8.2.0
Set a delegate to override asynchronously the style of the highlights depending on each item’s code and state.
- styleResponseCacheEnabled
styleResponseCacheEnabled: boolean
Added in version 8.2.0
If enabled the asyncStyleProvider responses will be cached, otherwise the style will be asked every time. Defaults to true.