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

From wizarPOS
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/customize-pinpad-gui}}")
Tag: Replaced
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== API ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/customize-pinpad-gui}}
=== <big>setupCallbackHandler of PINPadInterface</big>===
  <syntaxhighlight lang="java">int setupCallbackHandler(PinPadCallbackHandler handler);</syntaxhighlight>
Set a callback handler. When an input occurs to PINPAD, the callback handler is called.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| handler||  '''PinPadCallbackHandler :''' Not null.
|}
{|
|-
|}
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | 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.
|}
 
=== <big>processCallback of </big>===
  <syntaxhighlight lang="java">void processCallback(byte[] data);</syntaxhighlight>
The callback method.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | 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 [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/advanceSDK/PinpadForQ1_Q2.zip PINPad customize UI demo]

Latest revision as of 03:22, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/customize-pinpad-gui

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!