Interface class for Grabba MRTD-related events.
Objects which implement this interface may receive callbacks when these events occur, via delegation from a MRTD_Listener object.
Note that this interface need not be directly implemented; it may be simpler to subclass MRTD_Listener 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 | dataEvent (@NonNull BER_TLV data) |
Callback which is invoked when an asynchronous MRTD read completes successfully. More... | |
void | errorEvent (@NonNull ErrorCode error) |
Callback which is invoked when an asynchronous MRTD read fails. More... | |
void | progressEvent (byte percentage) |
Callback which is invoked when asynchronous MRTD read progress advances. More... | |
void dataEvent | ( | @NonNull BER_TLV | data | ) |
Callback which is invoked when an asynchronous MRTD read completes successfully.
data | Contents of the data read from the MRTD, in BER-TLV format |
Implemented in MRTD_Listener.
void errorEvent | ( | @NonNull ErrorCode | error | ) |
Callback which is invoked when an asynchronous MRTD read fails.
error | Reason why the read operation failed |
Implemented in MRTD_Listener.
void progressEvent | ( | byte | percentage | ) |
Callback which is invoked when asynchronous MRTD read progress advances.
percentage | Current read progress percentage |
Implemented in MRTD_Listener.