Barcode Pick View Highlight Style Dot With Icons
Defined in framework ScanditBarcodeCapture
- BarcodePickViewHighlightStyleDotWithIcons
open class BarcodePickViewHighlightStyleDotWithIcons : NSObject, 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.
- init
init()
Added in version 6.20.0
Creates a new instance with default values.
- brush
open func brush(for state: BarcodePickState) -> Brush
Added in version 6.20.0
Gets the brush used for the passed pick state.
- setBrush
open func setBrush(_ brush: Brush, for state: BarcodePickState) ->
VoidAdded in version 6.20.0
Use this method to configure the brush used for the specific pick state.
- selectedBrush
open func selectedBrush(for 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.
- setSelectedBrush
open func setSelectedBrush(_ brush: Brush?, for state: BarcodePickState) ->
VoidAdded 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.
- setIcon
open func setIcon(_ icon: UIImage?, for state: BarcodePickState) ->
VoidAdded 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.
- setScanditIcon
open func setScanditIcon(_ icon: ScanditIcon?, for state: BarcodePickState) ->
VoidAdded 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.
- setSelectedIcon
open func setSelectedIcon(_ icon: UIImage?, for state: BarcodePickState) ->
VoidAdded 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.
- setSelectedScanditIcon
open func setSelectedScanditIcon(_ icon: ScanditIcon?, for state: BarcodePickState) ->
VoidAdded 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.
- jsonString
open var jsonString: String { get }
Added in version 6.20.0
Returns the JSON representation of this BarcodePickViewHighlightStyleDotWithIcons.
- delegate
open weak var delegate: BarcodePickViewHighlightStyleDelegate? { get, set }
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.