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

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/customize-pinpad-gui}}")
Tag: Replaced
 
(5 intermediate revisions by 2 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 PINPadInterface</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 ==
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 [http://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!