Barcode AR Filter

Defined in framework ScanditBarcodeCapture

BarcodeArFilter
protocol BarcodeArFilter : NSObjectProtocol

Added in version 8.1.0

Interface for filtering barcodes in BarcodeAr.

Implement this interface to provide custom barcode filtering logic that determines which barcodes should be visible in the BarcodeArSession. This allows you to selectively show only barcodes that meet certain criteria (e.g., specific symbologies, data patterns, or business logic).

The filter is evaluated:

It is not re-evaluated when only barcode positions are updated.

filterBarcodes
open func filterBarcodes(_ barcodes: Array<Barcode>) -> Array<Barcode>

Added in version 8.1.0

Filters the provided barcodes and returns which ones should be visible.

Param barcodes

All currently visible barcodes.

Returns

A subset of the input barcodes that should be shown to the user. The returned list must only contain barcodes from the input; any other barcodes will be ignored.

Note

This method is called on an internal recognition thread and must return quickly to avoid impacting frame processing performance.