How to Customize the POS Graphical User Interface for PINPAD Input: Difference between revisions

From wizarPOS
Line 21: Line 21:
|}
|}


=== <big>processCallback of </big>===
=== <big>processCallback of PINPadInterface</big>===
   <syntaxhighlight lang="java">void processCallback(byte[] data);</syntaxhighlight>
   <syntaxhighlight lang="java">void processCallback(byte[] data);</syntaxhighlight>
The callback method.
The callback method.
Line 35: Line 35:
|   
|   
|}
|}
== Usage ==
== Usage ==
setupCallbackHandler, this method defined at PINPadInterface, before call the method, you should call open method firstly, then you can set a callback handler to the PINPad. After set the callback handler, the system pinpad input UI will not popup, and the callback handler will handle the count of the input pin. Please get the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/advanceSDK/PinpadForQ1_Q2.zip PINPad customize UI demo]
setupCallbackHandler, this method defined at PINPadInterface, before call the method, you should call open method firstly, then you can set a callback handler to the PINPad. After set the callback handler, the system pinpad input UI will not popup, and the callback handler will handle the count of the input pin. Please get the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/advanceSDK/PinpadForQ1_Q2.zip PINPad customize UI demo]

Revision as of 04:59, 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

setupCallbackHandler, this method defined at PINPadInterface, before call the method, you should call open method firstly, then you can set a callback handler to the PINPad. After set the callback handler, the system pinpad input UI will not popup, and the callback handler will handle the count of the input pin. Please get the PINPad customize UI demo