Package io.scanbot.sdk.barcode
Interface IBarcodeFilter
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface IBarcodeFilter implements Serializable
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.
-
-
Method Summary
Modifier and Type Method Description abstract Boolean
acceptsBarcode(BarcodeItem barcode)
Accepts or rejects a scanned barcode. abstract Boolean
shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes)
Accepts or rejects a scanned barcode in the context of already accepted barcodes. -
-
Method Detail
-
acceptsBarcode
abstract Boolean acceptsBarcode(BarcodeItem barcode)
Accepts or rejects a scanned barcode.
- Parameters:
barcode
- The barcode to be accepted or rejected by the filter.
-
shouldAdd
abstract Boolean shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes)
Accepts or rejects a scanned barcode in the context of already accepted barcodes.
- Parameters:
barcode
- The barcode to be accepted or rejected by the filter.addedBarcodes
- List of current already accepted barcodes.
-
-
-
-