This interface invokes a callback function to receive data and/or a detailed response. To register for the event(s), call the subscribeAll() function with the name of a class that implements the IConfigurationCallback Delegates interface.
This event is called when certain asynchronous IDeviceConfiguration operations need to have a MAC included with the request.
IResult OnCalculateMAC(
unsigned char MACType,
vector<unsigned char> data);Parameter
Description
MACType
Type of Mac algorithm. For DynaFlex, use 0.
data
Contains the data of the payload to MAC.
Return Value: An IResult that contains the calculated MAC.
This event is called to update the host on the progress of an asynchronous IDeviceConfiguration operation. Enacted during but not limited to file sending and firmware updates.
Return Value: None
This event is called to update the host when an asynchronous IDeviceConfiguration operation is completed.
MTUSDKNFCE_NFCMifareUltralight | Mifare Ultralight. | |
MTUSDKNFCE_MifareClassic | Mifare Classic. | |
MTUSDKNFCE_CommandFailed | NFC command failed. | |
MTUSDKNFCE_Failed | Failed. | |
MTUSDKNFCE_IOFailed | IO failed. | |
MTUSDKNFCE_MifareClassic1K | Mifare Classic 1K. | |
MTUSDKNFCE_MifareClassic4K | Mifare Classic 4K. | |
MTUSDKNFCE_MifareDESFire | Mifare DESFire. | |
MTUSDKNFCE_AuthenticationFaile d | Authentication failed. | |
PaymentMethods This enum refers to which card type the device will perform a transaction. |
Enum | Descripti | |
PAYMENT_METHOD_MSR | For magnetic stripe cards. | |
PAYMENT_METHOD_CONTACT | For EMV chip cards. | |
PAYMENT_METHOD_CONTACTLESS | For NFC contactless cards. | |
PAYMENT_METHOD_MANUALENTRY | For user to manually enter transactio access. | |
PAYMENT_METHOD_BARCODE | For Barcode. | |
PAYMENT_METHOD_BARCODE_Enc rypted | For encrypted Barcode. | |
PAYMENT_METHOD_APPLE_VAS | For Apple VAS. | |
PAYMENT_METHOD_NFC | For NFC tag. | |
PAYMENT_METHOD_GOOGLE_VAS | For Ggoogle Wallet Smart Tap VAS | |
StatusCode. |
data | Contains the data for the event. | ||
Parameter
Description
progress
The progress of the configuration operation. Range:
0 - 100
Parameter
Description
status
Int representing an enumerated NFCEvent This enum refers to NFC events.
Enum
Descri
MTUSDKNFCE_None
No events yet to occur.
MTUSDKNFCE_TagRemoved
Tag removed.
void OnProgress(int progress);void OnResult(
int status,
vector<unsigned char> data);