![]() |
IDTech Android SDK Guide
1.00.175
API reference for NEO2
|
Classes | |
enum | EMV_RESULT_CODE_Types |
Public Member Functions | |
void | swipeMSRData (IDTMSRData card) |
void | lcdDisplay (int mode, String[] lines, int timeout) |
void | lcdDisplay (int mode, String[] lines, int timeout, byte[] languageCode, byte messageId) |
void | ctlsEvent (byte event, byte scheme, byte data) |
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.ctlsEvent | ( | byte | event, |
byte | scheme, | ||
byte | data | ||
) |
Contactless Event Asynchronous UI Message Event
event | Asynchronous UI Message Event:
|
scheme |
|
data | Event Data: For LED event: Higher nibble: LED # 00: LED0 01: LED1 02: LED2 03: LED3 FF: all Lower nibble: 00: Off 01: On 11: No change For Buzzer event: Higher nibble: 1: short beeps 2: long beeps Lower nibble, short beep: 0: No change 1: Single beep 2: Double beep 3: Triple beep Lower nibble, long beep: 0: 200ms 1: 400ms 2: 600ms For LCD event: LCD message index |
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 | ) |
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.lcdDisplay | ( | int | mode, |
String [] | lines, | ||
int | timeout, | ||
byte [] | languageCode, | ||
byte | messageId | ||
) |
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 |
languageCode | 2 bytes language code ("EN", "ES", "FR", or "ZH") of the LCD message. |
messageId | 1 byte id (from 1 to 34) for a LCD message string. |
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