BarcodeFilter

Basic implementation of IBarcodeFilter that accepts all barcodes except for duplicates.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

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

Accepts or rejects a scanned barcode.

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

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