deeke-script-app 1.6.4 → 1.6.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/@deekeScript/@type/Class/Global.d.ts +1 -1
- package/@deekeScript/@type/Class/Rect.d.ts +16 -16
- package/@deekeScript/@type/Class/UiSelector.d.ts +201 -201
- package/@deekeScript/@type/Class/WebSocket.d.ts +49 -49
- package/@deekeScript/@type/interface/Access.d.ts +71 -71
- package/@deekeScript/@type/interface/Device.d.ts +88 -88
- package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
- package/@deekeScript/@type/interface/Engines.d.ts +39 -39
- package/@deekeScript/@type/interface/FloatDialogs.d.ts +35 -35
- package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
- package/@deekeScript/@type/interface/Hid.d.ts +342 -342
- package/@deekeScript/@type/interface/Http.d.ts +41 -41
- package/@deekeScript/@type/interface/Images.d.ts +71 -71
- package/@deekeScript/@type/interface/Java.d.ts +7 -7
- package/@deekeScript/@type/interface/KeyBoards.d.ts +27 -27
- package/@deekeScript/@type/interface/Log.d.ts +16 -16
- package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
- package/@deekeScript/@type/interface/{SocketIOClient.d.ts → SocketIoClient.d.ts} +76 -76
- package/@deekeScript/@type/interface/System.d.ts +114 -114
- package/@deekeScript/@type/interface/UiObject.d.ts +197 -278
- package/README.md +67 -67
- package/deekeScript.json +669 -669
- package/deekeScriptZipBuild +48 -48
- package/gulpfile +17 -17
- package/init +32 -32
- package/jsconfig.json +11 -11
- package/package.json +42 -42
- package/script/9/common/util.js +19 -19
- package/script/9/dy/common/common.js +9 -9
- package/script/9/dy/common/version.js +3 -3
- package/script/9/dy/common/video.js +7 -7
- package/script/9/dy/task/taskOne.js +6 -6
- package/script/9/dy/version/310701.js +6 -6
- package/script/statistics/statistics.js +120 -120
- package/script/task/douyin_zan.js +37 -37
- package/script/task/dy.js +6 -6
- package/script/task/dyApp.js +6 -6
- package/script/task/tool.js +9 -9
- package/script/task.html +4 -4
- package/script/test/5.js +2 -2
- package/script/test/8.js +16 -16
- package/src/12/main.js +40 -40
- package/src/12/task.js +10 -10
- package/src/9/common/util.js +28 -28
- package/src/9/dy/common/common.js +12 -12
- package/src/9/dy/common/version.js +11 -11
- package/src/9/dy/common/video.js +14 -14
- package/src/9/dy/task/taskOne.js +13 -13
- package/src/9/dy/version/310701.js +7 -7
- package/src/statistics/statistics.js +120 -120
- package/src/task/douyin_zan.js +89 -89
- package/src/task/dy.js +14 -14
- package/src/task/dyApp.js +7 -7
- package/src/task/tool.js +19 -19
- package/src/task.html +4 -4
- package/src/test/2.js +2 -2
- package/src/test/5.js +4 -4
- package/src/test/8.js +36 -36
- package/test/2.0/engines/enginesSimple.js +72 -72
- package/test/2.js +6 -6
- package/test/Access.js +9 -9
- package/test/SocketIOClient.js +39 -39
- package/test/SocketIOServer.js +49 -49
- package/test/Storage.js +3 -3
- package/test/console.js +5 -5
- package/test/deekeScriptJson.js +5 -5
- package/test/device.js +11 -11
- package/test/encrypt.js +3 -3
- package/test/engines/1.js +4 -4
- package/test/engines/eng/1.js +8 -8
- package/test/engines/engines.js +6 -6
- package/test/engines/relative.dir.js +8 -8
- package/test/engines/relative.js +1 -1
- package/test/engines/test.js +6 -6
- package/test/engines.js +5 -5
- package/test/extension.js +27 -27
- package/test/files.js +7 -7
- package/test/foreground.js +23 -23
- package/test/http.js +19 -19
- package/test/images/findColor.js +15 -15
- package/test/java.js +28 -28
- package/test/log.js +10 -10
- package/test/module/module.js +4 -4
- package/test/notification.js +26 -26
- package/test/package.js +3 -3
- package/test/permise.js +29 -29
- package/test/thread.js +11 -11
- package/test/timer.close.js +27 -27
- package/test/timer.js +25 -25
- package/test/timer.stop.js +28 -28
- package/test/webSocket.js +22 -22
- package/uglify-config.json +15 -15
- package/images/test/statistics.png +0 -0
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var Device: Device;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface Device {
|
|
6
|
-
/**
|
|
7
|
-
* 息屏后,保持 CPU 唤醒,延时释放
|
|
8
|
-
* @param second 保持 CPU 唤醒,延时释放,单位秒
|
|
9
|
-
*/
|
|
10
|
-
public keepCpuAwake(second: number): void;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 关闭CPU唤醒状态
|
|
14
|
-
*/
|
|
15
|
-
public releaseCpuWakeLock(): void;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 获取屏幕宽度
|
|
19
|
-
*/
|
|
20
|
-
public width(): number;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 获取屏幕高度
|
|
24
|
-
*/
|
|
25
|
-
public height(): number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 获取设备版本,如 26
|
|
29
|
-
*/
|
|
30
|
-
public sdkInt(): number;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* 获取设备
|
|
34
|
-
*/
|
|
35
|
-
public device(): string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 获取设备版本,如 "8.1.0"
|
|
39
|
-
*/
|
|
40
|
-
public androidVersion(): string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
|
|
44
|
-
*/
|
|
45
|
-
public createUuid(): string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* 获取设备唯一标识符
|
|
49
|
-
*/
|
|
50
|
-
public getUuid(): string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* 获取设备卡密
|
|
54
|
-
*/
|
|
55
|
-
public getToken(): string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 获取设备其他信息(此方法可以取代getToken和getUuid)
|
|
59
|
-
*/
|
|
60
|
-
public getAttr(key: string): string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* 判断屏幕是否亮着
|
|
64
|
-
*/
|
|
65
|
-
public isScreenOn(): boolean;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
|
|
69
|
-
*/
|
|
70
|
-
public brand(): string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 获取设备操作系统名称, 如 "Android"
|
|
74
|
-
*/
|
|
75
|
-
public os(): string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* 获取设备型号名称, 如 "Honor V30" 或类似的字符串
|
|
79
|
-
*/
|
|
80
|
-
public model(): string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* 获取设备代号, 例如 "REL" 表示正式发布的版本
|
|
84
|
-
*/
|
|
85
|
-
public codename(): string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var Device: Device;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Device {
|
|
6
|
+
/**
|
|
7
|
+
* 息屏后,保持 CPU 唤醒,延时释放
|
|
8
|
+
* @param second 保持 CPU 唤醒,延时释放,单位秒
|
|
9
|
+
*/
|
|
10
|
+
public keepCpuAwake(second: number): void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 关闭CPU唤醒状态
|
|
14
|
+
*/
|
|
15
|
+
public releaseCpuWakeLock(): void;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 获取屏幕宽度
|
|
19
|
+
*/
|
|
20
|
+
public width(): number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 获取屏幕高度
|
|
24
|
+
*/
|
|
25
|
+
public height(): number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 获取设备版本,如 26
|
|
29
|
+
*/
|
|
30
|
+
public sdkInt(): number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 获取设备
|
|
34
|
+
*/
|
|
35
|
+
public device(): string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 获取设备版本,如 "8.1.0"
|
|
39
|
+
*/
|
|
40
|
+
public androidVersion(): string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
|
|
44
|
+
*/
|
|
45
|
+
public createUuid(): string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 获取设备唯一标识符
|
|
49
|
+
*/
|
|
50
|
+
public getUuid(): string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 获取设备卡密
|
|
54
|
+
*/
|
|
55
|
+
public getToken(): string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 获取设备其他信息(此方法可以取代getToken和getUuid)
|
|
59
|
+
*/
|
|
60
|
+
public getAttr(key: string): string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 判断屏幕是否亮着
|
|
64
|
+
*/
|
|
65
|
+
public isScreenOn(): boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
|
|
69
|
+
*/
|
|
70
|
+
public brand(): string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 获取设备操作系统名称, 如 "Android"
|
|
74
|
+
*/
|
|
75
|
+
public os(): string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 获取设备型号名称, 如 "Honor V30" 或类似的字符串
|
|
79
|
+
*/
|
|
80
|
+
public model(): string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 获取设备代号, 例如 "REL" 表示正式发布的版本
|
|
84
|
+
*/
|
|
85
|
+
public codename(): string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { };
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var Encrypt: Encrypt;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface Encrypt {
|
|
6
|
-
/**
|
|
7
|
-
* md5加密
|
|
8
|
-
* @param input
|
|
9
|
-
*/
|
|
10
|
-
public md5(input: string): string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* sha1加密
|
|
14
|
-
* @param input
|
|
15
|
-
*/
|
|
16
|
-
public sha1(input: string): string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* sha256加密
|
|
20
|
-
* @param input
|
|
21
|
-
*/
|
|
22
|
-
public sha256(input: string): string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* base64 encode
|
|
26
|
-
* @param input
|
|
27
|
-
*/
|
|
28
|
-
public base64Encode(input: string|byte[]): string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* base64 decode
|
|
32
|
-
* @param input
|
|
33
|
-
*/
|
|
34
|
-
public base64Decode(input: string): string;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* 生成iv
|
|
38
|
-
*/
|
|
39
|
-
public generateIv(): string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* aescbc加密
|
|
43
|
-
* @param key
|
|
44
|
-
* @param iv
|
|
45
|
-
* @param input
|
|
46
|
-
*/
|
|
47
|
-
public aesCbcEncrypt(key: string, iv: string, input: string): string;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* aescbc解密
|
|
51
|
-
* @param key
|
|
52
|
-
* @param iv
|
|
53
|
-
* @param input
|
|
54
|
-
*/
|
|
55
|
-
public aesCbcDecrypt(key: string, iv: string, input: string): string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var Encrypt: Encrypt;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Encrypt {
|
|
6
|
+
/**
|
|
7
|
+
* md5加密
|
|
8
|
+
* @param input
|
|
9
|
+
*/
|
|
10
|
+
public md5(input: string): string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* sha1加密
|
|
14
|
+
* @param input
|
|
15
|
+
*/
|
|
16
|
+
public sha1(input: string): string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* sha256加密
|
|
20
|
+
* @param input
|
|
21
|
+
*/
|
|
22
|
+
public sha256(input: string): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* base64 encode
|
|
26
|
+
* @param input
|
|
27
|
+
*/
|
|
28
|
+
public base64Encode(input: string|byte[]): string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* base64 decode
|
|
32
|
+
* @param input
|
|
33
|
+
*/
|
|
34
|
+
public base64Decode(input: string): string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 生成iv
|
|
38
|
+
*/
|
|
39
|
+
public generateIv(): string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* aescbc加密
|
|
43
|
+
* @param key
|
|
44
|
+
* @param iv
|
|
45
|
+
* @param input
|
|
46
|
+
*/
|
|
47
|
+
public aesCbcEncrypt(key: string, iv: string, input: string): string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* aescbc解密
|
|
51
|
+
* @param key
|
|
52
|
+
* @param iv
|
|
53
|
+
* @param input
|
|
54
|
+
*/
|
|
55
|
+
public aesCbcDecrypt(key: string, iv: string, input: string): string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var Engines: Engines;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface Engines {
|
|
6
|
-
/**
|
|
7
|
-
* 执行脚本
|
|
8
|
-
* @param file 文件路径,相对根目录的路径
|
|
9
|
-
*/
|
|
10
|
-
public executeScript(file: string): void;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 执行脚本
|
|
14
|
-
* @param content 脚本内容
|
|
15
|
-
*/
|
|
16
|
-
public executeScriptStr(name: string, content: string): void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
|
|
20
|
-
*/
|
|
21
|
-
public closeAll(): void;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
|
|
25
|
-
*/
|
|
26
|
-
public closeOther(): void;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 关闭hooks脚本
|
|
30
|
-
*/
|
|
31
|
-
public closeHook(): void;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 返回所有子脚本的数量
|
|
35
|
-
*/
|
|
36
|
-
public childScriptCount(): number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var Engines: Engines;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Engines {
|
|
6
|
+
/**
|
|
7
|
+
* 执行脚本
|
|
8
|
+
* @param file 文件路径,相对根目录的路径
|
|
9
|
+
*/
|
|
10
|
+
public executeScript(file: string): void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 执行脚本
|
|
14
|
+
* @param content 脚本内容
|
|
15
|
+
*/
|
|
16
|
+
public executeScriptStr(name: string, content: string): void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
|
|
20
|
+
*/
|
|
21
|
+
public closeAll(): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
|
|
25
|
+
*/
|
|
26
|
+
public closeOther(): void;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 关闭hooks脚本
|
|
30
|
+
*/
|
|
31
|
+
public closeHook(): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 返回所有子脚本的数量
|
|
35
|
+
*/
|
|
36
|
+
public childScriptCount(): number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var FloatDialogs: FloatDialogs;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface FloatDialogs {
|
|
6
|
-
/**
|
|
7
|
-
* 悬浮窗弹窗(需要开启悬浮窗权限)
|
|
8
|
-
* @param title 弹窗标题
|
|
9
|
-
* @param content 弹窗内容
|
|
10
|
-
*/
|
|
11
|
-
public show(title: string, content: string): void;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* 悬浮窗弹窗(需要开启悬浮窗权限)
|
|
15
|
-
* @param content 弹窗内容
|
|
16
|
-
*/
|
|
17
|
-
public show(content: string): void;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* toast 吐司,与System.toast区别是,可以后台弹出消息
|
|
21
|
-
*/
|
|
22
|
-
public toast(content: string): void;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* toastLong 吐司(时间更长),与System.toast区别是,可以后台弹出消息
|
|
26
|
-
*/
|
|
27
|
-
public toastLong(content: string): void;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 关闭FloatDialogs开启的所有弹窗
|
|
31
|
-
*/
|
|
32
|
-
public closeAll(): boolean;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var FloatDialogs: FloatDialogs;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface FloatDialogs {
|
|
6
|
+
/**
|
|
7
|
+
* 悬浮窗弹窗(需要开启悬浮窗权限)
|
|
8
|
+
* @param title 弹窗标题
|
|
9
|
+
* @param content 弹窗内容
|
|
10
|
+
*/
|
|
11
|
+
public show(title: string, content: string): void;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 悬浮窗弹窗(需要开启悬浮窗权限)
|
|
15
|
+
* @param content 弹窗内容
|
|
16
|
+
*/
|
|
17
|
+
public show(content: string): void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* toast 吐司,与System.toast区别是,可以后台弹出消息
|
|
21
|
+
*/
|
|
22
|
+
public toast(content: string): void;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* toastLong 吐司(时间更长),与System.toast区别是,可以后台弹出消息
|
|
26
|
+
*/
|
|
27
|
+
public toastLong(content: string): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 关闭FloatDialogs开启的所有弹窗
|
|
31
|
+
*/
|
|
32
|
+
public closeAll(): boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
declare global {
|
|
3
|
-
var ForegroundServiceBridge: foregroundServiceBridge;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface foregroundServiceBridge {
|
|
7
|
-
/**
|
|
8
|
-
* 开启前台服务
|
|
9
|
-
*/
|
|
10
|
-
public startService(): void;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 注册执行的方法(启动服务前设置)
|
|
14
|
-
* @param register 注册监听
|
|
15
|
-
*/
|
|
16
|
-
public register(func: Function): void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 前台服务标题和内容设置(启动服务前设置)
|
|
20
|
-
* @param title 前台服务标题
|
|
21
|
-
* @param content 前台服务内容
|
|
22
|
-
*/
|
|
23
|
-
public setContent(title: string, content: string):void;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* 关闭服务
|
|
27
|
-
*/
|
|
28
|
-
public stopService(): void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { };
|
|
1
|
+
|
|
2
|
+
declare global {
|
|
3
|
+
var ForegroundServiceBridge: foregroundServiceBridge;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
interface foregroundServiceBridge {
|
|
7
|
+
/**
|
|
8
|
+
* 开启前台服务
|
|
9
|
+
*/
|
|
10
|
+
public startService(): void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 注册执行的方法(启动服务前设置)
|
|
14
|
+
* @param register 注册监听
|
|
15
|
+
*/
|
|
16
|
+
public register(func: Function): void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 前台服务标题和内容设置(启动服务前设置)
|
|
20
|
+
* @param title 前台服务标题
|
|
21
|
+
* @param content 前台服务内容
|
|
22
|
+
*/
|
|
23
|
+
public setContent(title: string, content: string):void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 关闭服务
|
|
27
|
+
*/
|
|
28
|
+
public stopService(): void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { };
|