CloudPOS SDK: Difference between revisions

From wizarPOS
Line 17: Line 17:


=== Java API ===
=== 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 change the aar to the latest one.
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]
*[http://{{SERVERNAME}}/wizarposapi/ API Spec]
*[[Java Samples|Samples]]
*[[Java Samples|Samples]]

Revision as of 09:35, 21 November 2018

Device API

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.

C API

JNI API

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.

Payment EMV

Barcode

Full Screen