|
|
(154 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| == Device API ==
| | {{Migrating|https://smartpossdk.gitbook.io/cloudpossdk}} |
| There are three layers of device API, the lower layer is C, the device provides C interface, and the third-party app writes their own JNI source by calling the C interface.
| |
| The middle layer is JNI interface, wizarPOS writes JNI source and generates the device so files, so the third-party app just uses the JNIInterface to finish the calling.
| |
| The upper layer is Java interface, wizarPOS provides Java interface for the third-party app, the third-party app only needs to import the .aar pakcage to their libs.
| |
| The app should request [[permissions]] in manifest file.
| |
| *[[permissions|Permissions]] defination
| |
| *[[ESC Commands| WizarPOS printer ESC commands]]
| |
| === C API ===
| |
| The C API offers header files definition and the relevant so library is already included in the system. The application developers can create the native so library by the C API to implement their business logic. So the implementation will be more secure than Java implementation.
| |
| *[[API_description|API Spec]]
| |
| *[[error code|Error code]]
| |
| *[[header files|Header files]]
| |
| | |
| === JNI API ===
| |
| we offer JNI interface to wrapper the C API to help the developer to use C API. Now we recommended you to use Java API instead of JNI API.
| |
| *[http://{{SERVERNAME}}/jniinterfaceapi/ API Spec]
| |
| *[[How to import JNI to a project]]
| |
| *[[JNI Samples|Samples]]
| |
| | |
| === Java API ===
| |
| We packaged all the implement and resources to an aar file, so your project only need to add the aar file to your libs. You can always download the latest aar file from below. Because the aar file in SDK or in samples sometimes are not latest one, so after you download the sample, you should replace the aar to the latest one.
| |
| *[http://{{SERVERNAME}}/wizarposapi/ API Spec]
| |
| *[[Java Samples|Samples]]
| |
| *[ftp://sdkuser:wizsdkar@ftp.wizarpos.com/cloudpossdk.aar CloudPOS SDK AAR Download]
| |
| | |
| == Payment EMV ==
| |
| * [[EMV API]]
| |
| * [[EMV Flow]]
| |
| * [http://www.emvlab.org/emvtags/ EMV tag info]
| |
| * [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/EMVSample_20181109.zip EMV Sample]
| |
| | |
| == Barcode ==
| |
| * [[developed by scan service|Develops by scan service]]
| |
| * [[developed by zxing,zbar|Develops by ZXing, ZBar]]
| |
| | |
| == Full Screen ==
| |
| * [[How to use system API to make full screen|Make full screen using system API]]
| |
| * [[How to use android provid method to make full screen|Make full screen using android provided api]]
| |
| * [[how to disable home key|Disable home key]]
| |