Barcode Count Icon

Defined in framework ScanditBarcodeCapture

BarcodeCountIcon
open class BarcodeCountIcon : NSObject

Added in version 8.5.0

Wraps a pair of ScanditIcon instances used as a highlight icon by BarcodeCountView. The recognized and not-in-list highlights use BarcodeCountIcon only when the view BarcodeCountView.style is BarcodeCountViewStyle.icon. Accepted and rejected highlights always use BarcodeCountIcon, regardless of the view style. As a consequence, in BarcodeCountViewStyle.dot BarcodeCountView.acceptedBrush and BarcodeCountView.rejectedBrush no longer drive the per-barcode highlight (they still tint the barcode quad outline when manual clustering is enabled); to hide an accepted or rejected highlight, return nil from the corresponding listener callback instead of setting the brush to nil.

The icon to render is selected at runtime based on the overlay’s color scheme. When the chosen variant is nil, no highlight is drawn for that color scheme.

init
init(defaultIcon: ScanditIcon?, accessibleIcon: ScanditIcon?)

Added in version 8.5.0

Constructs a new BarcodeCountIcon with separate variants for the default and accessible color schemes. Either argument may be nil.

defaultIcon
open var defaultIcon: ScanditIcon? { get }

Added in version 8.5.0

The icon used when the overlay is in the default color scheme. If nil, no highlight is drawn in the default color scheme.

accessibleIcon
open var accessibleIcon: ScanditIcon? { get }

Added in version 8.5.0

The icon used when the overlay is in the accessible color scheme. If nil, no highlight is drawn in the accessible color scheme.