ms-types 0.6.7 → 0.6.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/global.d.ts
CHANGED
|
@@ -43,10 +43,6 @@ declare const __package__: {
|
|
|
43
43
|
* 应用名称
|
|
44
44
|
*/
|
|
45
45
|
name: string;
|
|
46
|
-
/**
|
|
47
|
-
* 应用包名
|
|
48
|
-
*/
|
|
49
|
-
package: string;
|
|
50
46
|
/**
|
|
51
47
|
* 应用版本
|
|
52
48
|
*/
|
|
@@ -55,19 +51,6 @@ declare const __package__: {
|
|
|
55
51
|
* 应用 Id
|
|
56
52
|
*/
|
|
57
53
|
appId: string;
|
|
58
|
-
/**
|
|
59
|
-
* 应用更新参数
|
|
60
|
-
*/
|
|
61
|
-
update: {
|
|
62
|
-
/**
|
|
63
|
-
* 应用更新地址
|
|
64
|
-
*/
|
|
65
|
-
url: string;
|
|
66
|
-
/**
|
|
67
|
-
* 应用更新超时时间
|
|
68
|
-
*/
|
|
69
|
-
timeout: number;
|
|
70
|
-
};
|
|
71
54
|
[key: string]: any;
|
|
72
55
|
};
|
|
73
56
|
|
package/types/hid.d.ts
CHANGED
|
@@ -63,6 +63,25 @@ declare namespace hid {
|
|
|
63
63
|
*/
|
|
64
64
|
function isUSBConnected(): boolean;
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* 获取蓝牙 HID 设备名称
|
|
68
|
+
* @returns 蓝牙 HID 设备名称
|
|
69
|
+
*/
|
|
70
|
+
function getBLEHIDDeviceName(): string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 设置蓝牙 HID 设备名称
|
|
74
|
+
* @param name 蓝牙 HID 设备名称
|
|
75
|
+
* @returns 是否设置成功
|
|
76
|
+
*/
|
|
77
|
+
function setBLEHIDDeviceName(name: string): boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 获取设备 MAC 字符串
|
|
81
|
+
* @returns 设备 MAC 字符串
|
|
82
|
+
*/
|
|
83
|
+
function getDeviceMac(): string;
|
|
84
|
+
|
|
66
85
|
/**
|
|
67
86
|
* 复位坐标到左上角 只有相对鼠标需要
|
|
68
87
|
* @returns 操作是否成功
|
|
@@ -65,6 +65,25 @@ declare namespace $HID {
|
|
|
65
65
|
*/
|
|
66
66
|
function 是否连接USB模块(): 布尔值;
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* 获取蓝牙 HID 设备名称
|
|
70
|
+
* @returns 蓝牙 HID 设备名称
|
|
71
|
+
*/
|
|
72
|
+
function 获取蓝牙HID设备名称(): 字符串;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 设置蓝牙 HID 设备名称
|
|
76
|
+
* @param name 蓝牙 HID 设备名称
|
|
77
|
+
* @returns 是否设置成功
|
|
78
|
+
*/
|
|
79
|
+
function 设置蓝牙HID设备名称(name: 字符串): 布尔值;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 获取设备 MAC 字符串
|
|
83
|
+
* @returns 设备 MAC 字符串
|
|
84
|
+
*/
|
|
85
|
+
function 获取设备Mac(): 字符串;
|
|
86
|
+
|
|
68
87
|
/**
|
|
69
88
|
* 复位坐标到左上角 只有相对鼠标需要
|
|
70
89
|
* @returns 操作是否成功
|