![]() |
IDTech Android SDK Guide
1.00.042
API reference for MiniSmart II
|
Classes | |
enum | EMV_RESULT_CODE_Types |
Public Member Functions | |
void | swipeMSRData (IDTMSRData card) |
void | lcdDisplay (int mode, String[] lines, int timeout) |
void | emvTransactionData (IDTEMVData emvData) |
void | deviceConnected () |
void | deviceDisconnected () |
void | timeout (int errorCode) |
void | autoConfigCompleted (StructConfigParameters profile) |
void | autoConfigProgress (int progressValue) |
void | msgRKICompleted (String MACResult) |
void | ICCNotifyInfo (byte[] dataNotify, String strMessage) |
void | msgBatteryLow () |
void | LoadXMLConfigFailureInfo (int index, String strMessage) |
void | msgToConnectDevice () |
void | msgAudioVolumeAjustFailed () |
void | dataInOutMonitor (byte[] data, boolean isIncoming) |
The interface includes the callback functions for card data, PIN data and EMV data. The android activity should implement this interface then implement callback functions.
void com.idtechproducts.device.OnReceiverListener.autoConfigCompleted | ( | StructConfigParameters | profile | ) |
The auto config process finished, and succeeded to get one profile to connect the device.
void com.idtechproducts.device.OnReceiverListener.autoConfigProgress | ( | int | progressValue | ) |
The auto config process percent value.
void com.idtechproducts.device.OnReceiverListener.dataInOutMonitor | ( | byte[] | data, |
boolean | isIncoming | ||
) |
The input/output data notification,
data | the input/output data. |
isIncoming | true if is incoming data, false if it is out going data. |
void com.idtechproducts.device.OnReceiverListener.deviceConnected | ( | ) |
Fires when device connects.
void com.idtechproducts.device.OnReceiverListener.deviceDisconnected | ( | ) |
Fires when device disconnects.
void com.idtechproducts.device.OnReceiverListener.emvTransactionData | ( | IDTEMVData | emvData | ) |
Update the progress bar for firmware update During the firmware update, this delegate will update the length of the progress bar, and the status of the firmware update. Applies to UniPay III
progress | the progress of the progress bar |
errorCode | the error code of the firmware update EMV Transaction Data |
This protocol will receive results from IDT_Device::startEMVTransaction:otherAmount:timeout:cashback:additionalTags:()
emvData | EMV Results Data. Result code, card type, encryption type, masked tags, encrypted tags, unencrypted tags and KSN |
void com.idtechproducts.device.OnReceiverListener.ICCNotifyInfo | ( | byte[] | dataNotify, |
String | strMessage | ||
) |
The ICC Card seated status notification,
dataNotify | the response data. |
strMessage,the | ICC notification message information. |
void com.idtechproducts.device.OnReceiverListener.lcdDisplay | ( | int | mode, |
String[] | lines, | ||
int | timeout | ||
) |
LCD Display Request During an EMV transaction, this delegate will receive data to clear virtual LCD display, display messages, display menu, or display language. Applies to UniPay III
mode | LCD Display Mode:
|
lines | Line(s) of data to display |
timeout | Timeout value when displaying dialog box |
void com.idtechproducts.device.OnReceiverListener.LoadXMLConfigFailureInfo | ( | int | index, |
String | strMessage | ||
) |
Get the user grant to continue process ,
index | 1: "This phone model is not supported by the current SDK. Please contact supporter for assistance."; 2: "Wrong XML file name, please set the filename or enable the auto update."; 3: "The XML file does not exist and the auto update disabled."; 4: "Can't download the XML file. Please make sure the network is accessible."; |
strMessage,the | message information when loading the XML file. |
void com.idtechproducts.device.OnReceiverListener.msgAudioVolumeAjustFailed | ( | ) |
The message notify the application failed to adjust the audio volume.
strMessage,the | message of description about the failure info when to adjust the audio volume. |
void com.idtechproducts.device.OnReceiverListener.msgBatteryLow | ( | ) |
Battery low status notification,
void com.idtechproducts.device.OnReceiverListener.msgRKICompleted | ( | String | MACResult | ) |
RKI succeeded; MAC result as return value.
void com.idtechproducts.device.OnReceiverListener.msgToConnectDevice | ( | ) |
The message notify the application to connect the device.
void com.idtechproducts.device.OnReceiverListener.swipeMSRData | ( | IDTMSRData | card | ) |
Call back function,this function will be called automatically if Card decode has been completed after swiping card.
card | the MSR data. Card data.It is encrypted data and format is following:
|
void com.idtechproducts.device.OnReceiverListener.timeout | ( | int | errorCode | ) |
Notify the plug status of phone jack. Timeout when wait for the response.
This happens in the process of get PINpad, swipe MSR, EMV Level 2 transaction