Barcode Sequence Highlight Provider

Defined in framework ScanditBarcodeCapture

BarcodeSequenceHighlightProvider
protocol BarcodeSequenceHighlightProvider : NSObjectProtocol

Added in version 8.5.4

Used to provide custom highlights for sequenced barcodes when set on BarcodeSequenceView.highlightProvider. When no provider is set, the built-in circle highlight is used.

highlight(for:completionHandler:)
func highlight(for sequencedBarcode: SequencedBarcode, completionHandler: @escaping ((any UIView & BarcodeSequenceHighlight)?) -> Void) -> Void

Added in version 8.5.4

Asks the provider for the highlight to draw for the given sequenced barcode. If nil is provided, no highlight is shown for that barcode, and the barcode cannot be tapped to open the add/remove popover. Asked once per barcode per provider, so replacing the provider asks again for every tracked barcode.

This method is called on the main thread, and completionHandler must be invoked on the main thread.

highlight(for:)
func highlight(for sequencedBarcode: SequencedBarcode) async -> (any UIView & BarcodeSequenceHighlight)?

Added in version 8.5.4

Asks the provider for the highlight to draw for the given sequenced barcode. If nil is provided, no highlight is shown for that barcode, and the barcode cannot be tapped to open the add/remove popover.