shouldAdd

abstract fun shouldAdd(barcode: BarcodeItem, addedBarcodes: List<BarcodeItem>): Boolean

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

Return

true if the given barcode should be accepted, false otherwise.

Parameters

barcode

The barcode to be accepted or rejected by the filter.

addedBarcodes

List of current already accepted barcodes.