Barcode Pick View Highlight Style Rectangular With Icons

Defined in framework ScanditBarcodeCapture

BarcodePickViewHighlightStyleRectangularWithIcons
open class BarcodePickViewHighlightStyleRectangularWithIcons : NSObject, 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.

init()
init()

Added in version 6.19.0

Creates a new instance with default values.

brush(for:)
open func brush(for state: BarcodePickState) -> Brush

Added in version 6.19.0

Gets the brush used for the passed pick state.

setBrush(_:for:)
open func setBrush(_ brush: Brush, for state: BarcodePickState) -> Void

Added in version 6.19.0

Use this method to configure the brush used for the specific pick state.

selectedBrush(for:)
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 nil, selected items are drawn with the same brush as non-selected items in the same state. Default is nil for all states.

setSelectedBrush(_:for:)
open func setSelectedBrush(_ brush: Brush?, for state: BarcodePickState) -> Void

Added in version 6.24.0

Use this method to configure the brush used when items in the specific pick state are selected. Pass nil to draw selected items with the same brush as non-selected items in the same state.

setIcon(_:for:)
open func setIcon(_ icon: UIImage?, for state: BarcodePickState) -> Void

Added in version 6.22.0

Use this method to configure the icon used for the specific pick state.

setScanditIcon(_:for:)
open func setScanditIcon(_ icon: ScanditIcon?, for state: BarcodePickState) -> Void

Added in version 7.3.0

Use this method to configure the icon used for the specific pick state using a resource.

setSelectedIcon(_:for:)
open func setSelectedIcon(_ icon: UIImage?, for state: BarcodePickState) -> Void

Added in version 6.24.0

Use this method to configure the icon used when items in the specific pick state are selected. If nil, selected items use the same icon as non-selected items in the same state. Default is nil for all states.

setSelectedScanditIcon(_:for:)
open func setSelectedScanditIcon(_ icon: ScanditIcon?, for state: BarcodePickState) -> Void

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 nil for all states.

jsonString
open var jsonString: String { get }

Added in version 6.19.0

Returns the JSON representation of this BarcodePickViewHighlightStyleRectangularWithIcons.

delegate
open weak var delegate: BarcodePickViewHighlightStyleDelegate? { get, set }

Added in version 6.22.0

Sets a delegate to override asynchronously the style of the highlights depending on each item’s code and state.

styleResponseCacheEnabled
open var styleResponseCacheEnabled: Bool { get, set }

Added in version 6.22.0

If enabled the delegate responses will be cached, otherwise the style will be asked every time. Defaults to true.

statusIconSettings
open var statusIconSettings: BarcodePickStatusIconSettings { get, set }

Added in version 6.25.0

The settings used to customize the status icons.

minimumHighlightWidth
open var minimumHighlightWidth: Int { get, set }

Added in version 6.25.0

Minimum width for the highlights. Default is 40dp.

minimumHighlightHeight
open var minimumHighlightHeight: Int { get, set }

Added in version 6.25.0

Minimum height for the highlights. Default is 40dp.