CloudPOS SDK: Difference between revisions
No edit summary |
|||
Line 4: | Line 4: | ||
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 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. | The app should request [[permissions]] in manifest file. | ||
*[[permissions]] defination | *[[permissions|Permissions]] defination | ||
*[[ESC Commands| WizarPOS printer ESC commands]] | *[[ESC Commands| WizarPOS printer ESC commands]] | ||
=== C API === | === C API === |
Revision as of 02:57, 19 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.
- Permissions defination
- WizarPOS printer ESC commands