Barcode Pick View Highlight Style Rectangular
Defined in package com.scandit.datacapture.barcode.pick.ui
- Rectangular
class Rectangular : BarcodePickViewHighlightStyle
Added in version 6.19.0
A style that will draw rectangles on top of barcodes.
- Rectangular()
Rectangular()Added in version 6.19.0
Creates a new instance with default values.
- getBrushForState(state)
fun getBrushForState(state: BarcodePickState): Brush
Added in version 6.19.0
Gets the brush used for the passed pick state.
- setBrushForState(brush, state)
fun setBrushForState(brush: Brush, state: BarcodePickState)
Added in version 6.19.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.
- toJson()
fun toJson(): String
Added in version 6.19.0
Returns the JSON representation of this Rectangular.
- minimumHighlightWidth
var minimumHighlightWidth:
IntAdded in version 6.25.0
Minimum width for the highlights. Default is 40dp.
- minimumHighlightHeight
var minimumHighlightHeight:
IntAdded in version 6.25.0
Minimum height for the highlights. Default is 40dp.