API description: Difference between revisions

From wizarPOS
(Created page with "== Printer API == There are three layers of printer API, the lower layer is C, the device provid C interface, and the third app to write their own JNI source by calling the...")
 
Line 4: Line 4:
   The upper layer is Java interface, wizarPOS provide Java interface for the third app, the third app only need to import the .aar pakcage to their libs.
   The upper layer is Java interface, wizarPOS provide Java interface for the third app, the third app only need to import the .aar pakcage to their libs.
=== C interface ===
=== C interface ===
==== Functions ====
===== open =====
=== JNI interface ===
=== JNI interface ===
=== Java interface ===
=== Java interface ===

Revision as of 10:01, 27 March 2018

Printer API

 There are three layers of printer API, the lower layer is C, the device provid C interface, and the third app to write their own JNI source by calling the C interface.
 The middle layer is JNI interface, wizarPOS write JNI source and generate the device so files, so the third app just use the JNIInterface to finish the calling.
 The upper layer is Java interface, wizarPOS provide Java interface for the third app, the third app only need to import the .aar pakcage to their libs.

C interface

Functions

open

JNI interface

Java interface