ms-types 0.8.7 → 0.8.9
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/package.json
CHANGED
package/types/hid.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ declare namespace hid {
|
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* 按下按钮
|
|
306
|
-
* @param button 按钮 home 按下
|
|
306
|
+
* @param button 按钮 home 按下Home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按下上一首键 eject 显示隐藏键盘 globe 按下globe键 search 按下搜索键 brightnessup 调高屏幕亮度 brightnessdown 调低屏幕亮度 power 电源/锁屏键 snapshot 系统截图键
|
|
307
307
|
* @returns 按下按钮是否成功
|
|
308
308
|
* @example action.pressButton("home")
|
|
309
309
|
*/
|
|
@@ -322,7 +322,6 @@ declare namespace hid {
|
|
|
322
322
|
| "brightnessup"
|
|
323
323
|
| "brightnessdown"
|
|
324
324
|
| "power"
|
|
325
|
-
| "menu"
|
|
326
325
|
| "snapshot",
|
|
327
326
|
): boolean;
|
|
328
327
|
|
package/types/pip.d.ts
CHANGED
|
@@ -1,51 +1,23 @@
|
|
|
1
1
|
declare namespace pip {
|
|
2
|
-
interface LogViewParams {
|
|
3
|
-
/**
|
|
4
|
-
* 悬浮窗宽度,不能小于 100
|
|
5
|
-
*/
|
|
6
|
-
width: number;
|
|
7
|
-
/**
|
|
8
|
-
* 悬浮窗高度,不能小于 100
|
|
9
|
-
*/
|
|
10
|
-
height: number;
|
|
11
|
-
/**
|
|
12
|
-
* 日志的字体大小
|
|
13
|
-
*/
|
|
14
|
-
textSize: number;
|
|
15
|
-
/**
|
|
16
|
-
* 日志的文字颜色,格式如 #FFFFFF
|
|
17
|
-
*/
|
|
18
|
-
textColor: string;
|
|
19
|
-
/**
|
|
20
|
-
* 日志的背景颜色,格式如 #000000
|
|
21
|
-
*/
|
|
22
|
-
backgroundColor: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 设置悬浮窗日志窗口的显示参数[显示日志窗口之前调用才会生效]
|
|
26
|
-
* @param params 包含显示参数的字典
|
|
27
|
-
*/
|
|
28
|
-
function setLogViewParams(params: LogViewParams): void;
|
|
29
2
|
/**
|
|
30
3
|
* 判断悬浮窗是否打开
|
|
31
4
|
* @returns true代表开启了悬浮窗,false代表没有开启
|
|
32
5
|
*/
|
|
33
6
|
function isPipActive(): boolean;
|
|
34
7
|
/**
|
|
35
|
-
*
|
|
8
|
+
* 切换到日志模式[首次显示悬浮窗时 App 必须在前台]
|
|
36
9
|
* 必须iOS设备支持悬浮窗功能,并且开启悬浮窗
|
|
37
|
-
* @returns true
|
|
10
|
+
* @returns true代表已提交切换请求
|
|
38
11
|
*/
|
|
39
|
-
function
|
|
12
|
+
function switchToLogMode(): boolean;
|
|
40
13
|
/**
|
|
41
|
-
*
|
|
42
|
-
* @returns true
|
|
14
|
+
* 切换到保活模式[首次显示悬浮窗时 App 必须在前台]
|
|
15
|
+
* @returns true代表已提交切换请求
|
|
43
16
|
*/
|
|
44
|
-
function
|
|
17
|
+
function switchToKeepAliveMode(): boolean;
|
|
45
18
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @returns true代表成功,false代表失败
|
|
19
|
+
* 切换到关闭模式
|
|
20
|
+
* @returns true代表已提交切换请求
|
|
49
21
|
*/
|
|
50
|
-
function
|
|
22
|
+
function switchToOffMode(): boolean;
|
|
51
23
|
}
|
|
@@ -307,7 +307,7 @@ declare namespace $HID {
|
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* 按下按钮
|
|
310
|
-
* @param 按键 按钮 home 按下
|
|
310
|
+
* @param 按键 按钮 home 按下Home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按下上一首键 eject 显示隐藏键盘 globe 按下globe键 search 按下搜索键 brightnessup 调高屏幕亮度 brightnessdown 调低屏幕亮度 power 电源/锁屏键 snapshot 系统截图键
|
|
311
311
|
* @returns 按下按钮是否成功
|
|
312
312
|
* @example $动作.按键("home")
|
|
313
313
|
*/
|
|
@@ -326,7 +326,6 @@ declare namespace $HID {
|
|
|
326
326
|
| "brightnessup"
|
|
327
327
|
| "brightnessdown"
|
|
328
328
|
| "power"
|
|
329
|
-
| "menu"
|
|
330
329
|
| "snapshot",
|
|
331
330
|
): 布尔值;
|
|
332
331
|
|
|
@@ -1,55 +1,27 @@
|
|
|
1
1
|
/// <reference path="全局模块.d.ts" />
|
|
2
2
|
/**
|
|
3
|
-
* 悬浮窗模块
|
|
3
|
+
* 悬浮窗模块 包含悬浮窗日志窗口的显示、关闭、状态查询等功能
|
|
4
4
|
*/
|
|
5
5
|
declare namespace $悬浮窗 {
|
|
6
|
-
interface 日志窗口参数 {
|
|
7
|
-
/**
|
|
8
|
-
* 悬浮窗宽度,不能小于 100
|
|
9
|
-
*/
|
|
10
|
-
width: 数字;
|
|
11
|
-
/**
|
|
12
|
-
* 悬浮窗高度,不能小于 100
|
|
13
|
-
*/
|
|
14
|
-
height: 数字;
|
|
15
|
-
/**
|
|
16
|
-
* 日志的字体大小
|
|
17
|
-
*/
|
|
18
|
-
textSize: 数字;
|
|
19
|
-
/**
|
|
20
|
-
* 日志的文字颜色,格式如 #FFFFFF
|
|
21
|
-
*/
|
|
22
|
-
textColor: 字符串;
|
|
23
|
-
/**
|
|
24
|
-
* 日志的背景颜色,格式如 #000000
|
|
25
|
-
*/
|
|
26
|
-
backgroundColor: 字符串;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 设置悬浮窗日志窗口的显示参数[显示日志窗口之前调用才会生效]
|
|
30
|
-
* @param 参数 日志窗口参数
|
|
31
|
-
*/
|
|
32
|
-
function 设置日志视图参数(参数: 日志窗口参数): 无返回值;
|
|
33
6
|
/**
|
|
34
7
|
* 判断悬浮窗是否打开
|
|
35
8
|
* @returns true代表开启了悬浮窗,false代表没有开启
|
|
36
9
|
*/
|
|
37
10
|
function 是否显示(): 布尔值;
|
|
38
11
|
/**
|
|
39
|
-
*
|
|
12
|
+
* 切换到日志模式[首次显示悬浮窗时 App 必须在前台]
|
|
40
13
|
* 必须iOS设备支持悬浮窗功能,并且开启悬浮窗
|
|
41
|
-
* @returns true
|
|
14
|
+
* @returns true代表已提交切换请求
|
|
42
15
|
*/
|
|
43
|
-
function
|
|
16
|
+
function 切换到日志模式(): 布尔值;
|
|
44
17
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @returns true
|
|
18
|
+
* 切换到保活模式[首次显示悬浮窗时 App 必须在前台]
|
|
19
|
+
* @returns true代表已提交切换请求
|
|
47
20
|
*/
|
|
48
|
-
function
|
|
21
|
+
function 切换到保活模式(): 布尔值;
|
|
49
22
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @
|
|
52
|
-
* @returns true代表成功,false代表失败
|
|
23
|
+
* 切换到关闭模式
|
|
24
|
+
* @returns true代表已提交切换请求
|
|
53
25
|
*/
|
|
54
|
-
function
|
|
26
|
+
function 切换到关闭模式(): 布尔值;
|
|
55
27
|
}
|