jcore-react-native 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/AndroidManifest.xml +1 -0
- package/index.d.ts +20 -0
- package/package.json +1 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 定义 JCore 类的类型声明
|
|
2
|
+
export default class JCore {
|
|
3
|
+
/**
|
|
4
|
+
* 设置认证信息
|
|
5
|
+
* @param auth 是否启用认证
|
|
6
|
+
*/
|
|
7
|
+
static setAuth(auth: boolean): void;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 设置国家代码
|
|
11
|
+
* @param params 包含国家代码的对象,字段为 { code: string }
|
|
12
|
+
*/
|
|
13
|
+
static setCountryCode(params: { code: string }): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 启用自动唤醒功能
|
|
17
|
+
* @param enable 是否启用自动唤醒
|
|
18
|
+
*/
|
|
19
|
+
static enableAutoWakeup(enable: boolean): void;
|
|
20
|
+
}
|