![]() |
UniPay SDK Guide for Android
0.02.011
API reference
|
Data Structures | |
enum | EMV_RESULT_CODE_Types |
enum | USER_GRANT_TYPE |
Public Member Functions | |
void | swipeMSRData (IDTMSRData card) |
void | deviceConnected () |
void | deviceDisconnected () |
void | plugStatusChange (DEVICE_INTERFACE_Types deviceInterface, boolean deviceInserted) |
void | timeout (String msgInfo) |
void | AutoConfigCompleted (StructConfigParameters profile) |
void | AutoConfigProgress (int progressValue) |
void | ICCNotifyInfo (byte[] dataNotify, String strMessage) |
boolean | getUserGrant (USER_GRANT_TYPE nType, String strMessage) |
void | LoadXMLConfigFileInfo (int index, String strMessage) |
void | msgToConnectDevice () |
void | msgAudioVolumeAjustFailed (String strMessage) |
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.deviceConnected | ( | ) |
Fires when device connects.
void com.idtechproducts.device.OnReceiverListener.deviceDisconnected | ( | ) |
Fires when device disconnects.
boolean com.idtechproducts.device.OnReceiverListener.getUserGrant | ( | USER_GRANT_TYPE | nType, |
String | strMessage | ||
) |
Get the user grant to continue process ,
nType | 0: grantConnectDevice: get the grant to connect the device, post when the phone detect the phone jack plug in the device. 1: grantUpdateXML: get the grant to update the configuration XML file. 2: grantOverwriteXML:get the grant to overwrite current configuration XML file. 3: grantTryAutoConfig: get the grant to search the profile through Auto config mode. 4: grantReportToIdtech: get the grant to report to ID TECH supports. |
strMessage,the | grant type message information. |
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.LoadXMLConfigFileInfo | ( | 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 | ( | String | strMessage | ) |
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.msgToConnectDevice | ( | ) |
The message notify the application to connect the device.
void com.idtechproducts.device.OnReceiverListener.plugStatusChange | ( | DEVICE_INTERFACE_Types | deviceInterface, |
boolean | deviceInserted | ||
) |
Notify the plug status of phone jack.
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 | ( | String | msgInfo | ) |
Timeout when wait for the response.
This happens in the process of get PINpad, swipe MSR, EMV Level 2 transaction