Interface class for Grabba barcode reader events.
Objects which implement this interface may receive callbacks when these events occur, via delegation from a BarcodeListener object.
Note that this interface need not be directly implemented; it may be simpler to subclass BarcodeListener and thereby receive the events directly.
Thread safety: This interface is intended to be thread-safe; any classes deriving from it should ensure that the relevant methods are callable from any thread.
Public Member Functions | |
void | cancelEvent () |
Callback which is invoked when a barcode scan is cancelled. More... | |
void | dataEvent (@NonNull BarcodeData data) |
Callback which is invoked when a barcode is successfully scanned. More... | |
void | errorEvent (@NonNull ErrorCode error) |
Callback which is invoked when a barcode scan fails. More... | |
void | startEvent () |
Callback which is invoked when a barcode scan is triggered. More... | |
void | stopEvent () |
Callback which is invoked when a barcode scan is stopped, regardless of reason. More... | |
void | timeoutEvent () |
Callback which is invoked when barcode scanning times out. More... | |
void cancelEvent | ( | ) |
Callback which is invoked when a barcode scan is cancelled.
Implemented in BarcodeListener.
void dataEvent | ( | @NonNull BarcodeData | data | ) |
Callback which is invoked when a barcode is successfully scanned.
data | Contains the data which was read, along with the ID of the symbology which was detected |
Implemented in BarcodeListener.
void errorEvent | ( | @NonNull ErrorCode | error | ) |
Callback which is invoked when a barcode scan fails.
error | Error code indicating the reasons for the failure |
Implemented in BarcodeListener.
void startEvent | ( | ) |
Callback which is invoked when a barcode scan is triggered.
Implemented in BarcodeListener.
void stopEvent | ( | ) |
Callback which is invoked when a barcode scan is stopped, regardless of reason.
Implemented in BarcodeListener.
void timeoutEvent | ( | ) |
Callback which is invoked when barcode scanning times out.
Implemented in BarcodeListener.