Barcode Count Icon

Defined in package com.scandit.datacapture.barcode.count.ui

BarcodeCountIcon
class BarcodeCountIcon

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 null from the corresponding listener callback instead of setting the brush to null.

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

BarcodeCountIcon()
BarcodeCountIcon(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 null.

defaultIcon
val defaultIcon: ScanditIcon?

Added in version 8.5.0

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

accessibleIcon
val accessibleIcon: ScanditIcon?

Added in version 8.5.0

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