IBarcodeFilter

An interface for a barcode filtering that can be used in barcode scanning RTU-UI components. You can customize the filtering of barcode results coming from RTU-UI barcode scanners by implementing a subclass of this class and pass this class to the barcode scanning RTU-UI component as a part of configuration.

Inheritors

Functions

Link copied to clipboard
abstract fun acceptsBarcode(barcode: BarcodeItem): Boolean

Accepts or rejects a scanned barcode.

Link copied to clipboard
abstract fun shouldAdd(barcode: BarcodeItem, addedBarcodes: List<BarcodeItem>): Boolean

Accepts or rejects a scanned barcode in the context of already accepted barcodes.