How to Customize the POS Graphical User Interface for PINPAD Input: Difference between revisions
(→Usage) |
(→Usage) |
||
Line 37: | Line 37: | ||
== Usage == | == Usage == | ||
The setupcallbackhandler method is defined in PINPadInterface. Before calling this method, you should call the open method. After setting the callback handler, the default PINPAD input interface will not pop up, and the callback handler will process the input PIN count. Please get a [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/advanceSDK/PinpadForQ1_Q2.zip PINPAD customize UI demo] | The setupcallbackhandler method is defined in PINPadInterface. Before calling this method, you should call the open method. After setting the callback handler, the default PINPAD input interface will not pop up, and the callback handler will process the input PIN count. Please get a [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/advanceSDK/PinpadForQ1_Q2.zip PINPAD customize UI demo] |
Revision as of 05:54, 27 March 2020
API
setupCallbackHandler of PINPadInterface
int setupCallbackHandler(PinPadCallbackHandler handler);
Set a callback handler. When an input occurs to PINPAD, the callback handler is called.
Parameters | |
---|---|
handler | PinPadCallbackHandler : Not null. |
Returns | |
---|---|
int | >=0: success, -1: has not find lib, -2: has not find pinpad_set_pinblock_callback in lib, -3: has not find PinpadCallback in Java code. |
processCallback of PINPadInterface
void processCallback(byte[] data);
The callback method.
Parameters | |
---|---|
data | byte[] : date[0] is the count of input pin. |
Usage
The setupcallbackhandler method is defined in PINPadInterface. Before calling this method, you should call the open method. After setting the callback handler, the default PINPAD input interface will not pop up, and the callback handler will process the input PIN count. Please get a PINPAD customize UI demo