提交 | 用户 | 时间
|
c7009e
|
1 |
package iail.mdk.model.common; |
449017
|
2 |
|
D |
3 |
/** |
|
4 |
* @Description |
|
5 |
* @Author Forrest |
|
6 |
* @Mail 1255187617@qq.com |
|
7 |
* @Date 2021/1/12 |
|
8 |
*/ |
|
9 |
public class Environment { |
|
10 |
private native int jniInit(); |
|
11 |
|
|
12 |
private native int jniIsInit(); |
|
13 |
|
|
14 |
private native void jniRelease(); |
|
15 |
|
|
16 |
private native int statusCode(); |
|
17 |
|
|
18 |
/** |
|
19 |
* 初始化环境 |
|
20 |
*/ |
|
21 |
public int init() { |
|
22 |
return jniInit(); |
|
23 |
} |
|
24 |
|
|
25 |
/** |
|
26 |
* 获取初始化状态 |
|
27 |
*/ |
|
28 |
public int isInit() { |
|
29 |
return jniIsInit(); |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* 释放资源 |
|
34 |
*/ |
|
35 |
public void release() { |
|
36 |
jniRelease(); |
|
37 |
} |
|
38 |
/** |
|
39 |
*校验机器码 |
|
40 |
* */ |
|
41 |
// public int checkMachineCode(String mCode){ |
|
42 |
// return statusCode(); |
|
43 |
// } |
|
44 |
} |