public abstract class SDK
extends java.lang.Object
| Constructors and instructions |
|---|
SDK() |
| Qualifiers and Types | Methods and Instructions |
|---|---|
static SDK |
getInstance()
Gets the initialization instance of the SDK to create other classes.
|
abstract java.lang.String |
getProperty(java.lang.String name) |
abstract java.lang.String |
getVersion()
Get the version number
|
static void |
init(Context context)
Initialize the SDK, please call in the main thread, otherwise it will go wrong.
|
abstract java.lang.Object |
newInstance(java.lang.String interfaceName)
Create instances of other classes, such as Printer, Cashdrawer, and so on.
|
abstract void |
powerOff()
Shut down
|
public static void init(Context context)
throws java.lang.Throwable
context - java.lang.Throwablepublic static SDK getInstance() throws java.lang.Throwable
java.lang.Throwablepublic abstract java.lang.String getProperty(java.lang.String name)
throws java.lang.Throwable
java.lang.Throwablepublic abstract java.lang.Object newInstance(java.lang.String interfaceName)
throws java.lang.Throwable
interfaceName - java.lang.Throwablepublic abstract java.lang.String getVersion()
public abstract void powerOff()
throws java.lang.Throwable
java.lang.Throwable