Customize PINPAD GUI
Last updated
Last updated
This API allows you to set a custom callback handler for PINPAD inputs in your POS application. When a PIN is inputted on the PINPAD, the specified callback handler is triggered.
Parameters | |
---|---|
Returns | |
---|---|
The API provides a method to set this callback handler.
Parameters | |
---|---|
Initialize the PINPAD:
Before setting up the callback handler, ensure to call the 'open' method to initialize the PINPAD.
Setting the Callback Handler:
Use the 'setupcallbackhandler' method to assign your custom callback handler.
Once this handler is set, the default PINPAD user interface (UI) will not appear.
Handling PIN Input:
The driver will send the count of the inputted PIN to the callback handler.
Your application (referred to as the third-app) can then process this inputted PIN count as needed.
Snippet code:
Please download the project source code.
handler
PinPadCallbackHandler, it can nob be null.
boolean
a boolean representation of the result.
true if success. false if failure.
data
pin data from the kernel. date[0] is the count of input pin.