ms-types 0.9.32 → 0.9.34
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 +1 -1
- package/types/lua/README.md +1 -1
- package/types/lua/action.lua +3 -3
- package/types/lua/appleocr.lua +9 -6
- package/types/lua/cloud.lua +3 -3
- package/types/lua/config.lua +3 -3
- package/types/lua/cryptoUtils.lua +3 -3
- package/types/lua/cv.lua +4 -4
- package/types/lua/device.lua +3 -3
- package/types/lua/dotocr.lua +4 -4
- package/types/lua/file.lua +3 -3
- package/types/lua/hid.lua +3 -3
- package/types/lua/hotupdate.lua +3 -3
- package/types/lua/http.lua +3 -3
- package/types/lua/image.lua +7 -5
- package/types/lua/ime.lua +3 -3
- package/types/lua/logger.lua +3 -3
- package/types/lua/media.lua +3 -3
- package/types/lua/mysql.lua +3 -3
- package/types/lua/netcard.lua +3 -3
- package/types/lua/node.lua +3 -3
- package/types/lua/paddleocr.lua +9 -6
- package/types/lua/pip.lua +3 -3
- package/types/lua/system.lua +3 -3
- package/types/lua/tomatoocr.lua +3 -3
- package/types/lua/tts.lua +3 -3
- package/types/lua/ui.lua +3 -3
- package/types/lua/utils.lua +3 -3
- package/types/lua/yolo.lua +7 -5
- package/types/lua/yolocls.lua +3 -3
- package/types/system.d.ts +5 -0
- package/types/ui.d.ts +5 -0
- package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +5 -0
- package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +5 -0
package/package.json
CHANGED
package/types/lua/README.md
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
}
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
不要把本目录复制进脚本项目根目录。每个模块文件声明对应的全局表(如 `device`、`cv`、`dotocr`),不要 `require` 宿主模块。`Sleep`、`HidKey`、`logd` / `logi` / `logw` / `loge` 等裸全局会随 library 自动加载。用户自己的 `scripts/foo.lua` 仍用 `require("foo")`。
|
package/types/lua/action.lua
CHANGED
package/types/lua/appleocr.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class AppleOCR
|
|
3
3
|
local _AppleOCR = {}
|
|
4
4
|
|
|
@@ -14,7 +14,8 @@ local _AppleOCR = {}
|
|
|
14
14
|
---@field centerX integer 文本区域中心点 x 坐标
|
|
15
15
|
---@field centerY integer 文本区域中心点 y 坐标
|
|
16
16
|
|
|
17
|
-
---
|
|
17
|
+
--- 识别文本(兼容旧接口,请改用 recognizeAbs)
|
|
18
|
+
--- @deprecated 请改用 recognizeAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
18
19
|
--- @param input string 图像ID或路径
|
|
19
20
|
--- @param x integer|nil 区域X,默认0
|
|
20
21
|
--- @param y integer|nil 区域Y,默认0
|
|
@@ -46,7 +47,8 @@ function _AppleOCR.recognizeAbs(input, x, y, ex, ey, langs)
|
|
|
46
47
|
return ret
|
|
47
48
|
end
|
|
48
49
|
|
|
49
|
-
---
|
|
50
|
+
--- 识别数字(兼容旧接口,请改用 recognizeNumbersAbs)
|
|
51
|
+
--- @deprecated 请改用 recognizeNumbersAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
50
52
|
--- @param input string 图像ID或路径
|
|
51
53
|
--- @param x integer|nil 区域X,默认0
|
|
52
54
|
--- @param y integer|nil 区域Y,默认0
|
|
@@ -76,7 +78,8 @@ function _AppleOCR.recognizeNumbersAbs(input, x, y, ex, ey)
|
|
|
76
78
|
return ret
|
|
77
79
|
end
|
|
78
80
|
|
|
79
|
-
---
|
|
81
|
+
--- 查找文本(兼容旧接口,请改用 findTextAbs)
|
|
82
|
+
--- @deprecated 请改用 findTextAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
80
83
|
--- @param input string 图像ID或路径
|
|
81
84
|
--- @param targets string[]|string 目标文本数组或逗号分隔字符串
|
|
82
85
|
--- @param x integer|nil 区域X,默认0
|
|
@@ -112,5 +115,5 @@ function _AppleOCR.findTextAbs(input, targets, x, y, ex, ey, langs, exactMatch)
|
|
|
112
115
|
return ret
|
|
113
116
|
end
|
|
114
117
|
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
---@type AppleOCR
|
|
119
|
+
appleocr = _AppleOCR
|
package/types/lua/cloud.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Cloud
|
|
3
3
|
local _Cloud = {}
|
|
4
4
|
|
|
@@ -28,5 +28,5 @@ function _Cloud.report(event, data) return false end
|
|
|
28
28
|
---@param callback fun(event:string, data:table)|nil
|
|
29
29
|
function _Cloud.onEvent(callback) end
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
---@type Cloud
|
|
32
|
+
cloud = _Cloud
|
package/types/lua/config.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Config
|
|
3
3
|
local _Config = {}
|
|
4
4
|
|
|
@@ -31,5 +31,5 @@ function _Config.getKuiConfig() return {} end
|
|
|
31
31
|
---@return boolean
|
|
32
32
|
function _Config.remove(key) return true end
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
---@type Config
|
|
35
|
+
config = _Config
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class CryptoUtils
|
|
3
3
|
local _CryptoUtils = {}
|
|
4
4
|
|
|
@@ -43,5 +43,5 @@ function _CryptoUtils.sha1(data) return "" end
|
|
|
43
43
|
---@return string
|
|
44
44
|
function _CryptoUtils.sha256(data) return "" end
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
---@type CryptoUtils
|
|
47
|
+
cryptoUtils = _CryptoUtils
|
package/types/lua/cv.lua
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class OpenCV
|
|
3
3
|
local _OpenCV = {}
|
|
4
4
|
|
|
5
|
-
--- OpenCV Mat
|
|
5
|
+
--- OpenCV Mat 句柄模块;全局 `cv`。方法与常量对齐 JS `cv` 运行时导出。
|
|
6
6
|
|
|
7
7
|
--- absdiff
|
|
8
8
|
---@param ... any
|
|
@@ -724,5 +724,5 @@ function _OpenCV.warpPerspective(...) return nil end
|
|
|
724
724
|
---@return any
|
|
725
725
|
function _OpenCV.zeros(...) return nil end
|
|
726
726
|
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
---@type OpenCV
|
|
728
|
+
cv = _OpenCV
|
package/types/lua/device.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Device
|
|
3
3
|
local _Device = {}
|
|
4
4
|
|
|
@@ -102,5 +102,5 @@ function _Device.getLanIp() return '' end
|
|
|
102
102
|
---@param intensity number 0.0-1.0
|
|
103
103
|
function _Device.vibrate(duration, intensity) end
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
---@type Device
|
|
106
|
+
device = _Device
|
package/types/lua/dotocr.lua
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class DotOCR
|
|
3
3
|
local _DotOCR = {}
|
|
4
4
|
|
|
5
|
-
--- 点阵 OCR
|
|
5
|
+
--- 点阵 OCR;全局 `dotocr`
|
|
6
6
|
|
|
7
7
|
--- loadFont
|
|
8
8
|
---@param fontPath string
|
|
@@ -41,5 +41,5 @@ function _DotOCR.recognizeAbs(fontId, input, x, y, ex, ey, confidenceThreshold)
|
|
|
41
41
|
---@return table[]
|
|
42
42
|
function _DotOCR.findTextAbs(fontId, input, targetTexts, x, y, ex, ey, confidenceThreshold, exactMatch) return {} end
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
---@type DotOCR
|
|
45
|
+
dotocr = _DotOCR
|
package/types/lua/file.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class File
|
|
3
3
|
local _File = {}
|
|
4
4
|
|
|
@@ -93,5 +93,5 @@ function _File.copy(src, dest) return true end
|
|
|
93
93
|
--- @return string|nil MD5值
|
|
94
94
|
function _File.fileMD5(path) return '' end
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
---@type File
|
|
97
|
+
file = _File
|
package/types/lua/hid.lua
CHANGED
package/types/lua/hotupdate.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class HotUpdate
|
|
3
3
|
local _HotUpdate = {}
|
|
4
4
|
|
|
@@ -20,5 +20,5 @@ function _HotUpdate.downloadAndInstall() return {updated = true, error = nil} en
|
|
|
20
20
|
--- @return integer 版本号
|
|
21
21
|
function _HotUpdate.getCurrentVersion() return 0 end
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
---@type HotUpdate
|
|
24
|
+
hotupdate = _HotUpdate
|
package/types/lua/http.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Http
|
|
3
3
|
local _Http = {}
|
|
4
4
|
|
|
@@ -141,5 +141,5 @@ function _WebSocket.onBinary(fn) end
|
|
|
141
141
|
--- @param fn fun(error:string)
|
|
142
142
|
function _WebSocket.onError(fn) end
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
---@type Http
|
|
145
|
+
http = _Http
|
package/types/lua/image.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Image
|
|
3
3
|
local _Image = {}
|
|
4
4
|
|
|
@@ -30,11 +30,13 @@ local _Image = {}
|
|
|
30
30
|
--- @return string|nil 图片ID
|
|
31
31
|
function _Image.captureScreen(x, y, ex, ey) return '' end
|
|
32
32
|
|
|
33
|
-
---
|
|
33
|
+
--- 全屏截屏(兼容旧接口,请改用 captureScreen)
|
|
34
|
+
--- @deprecated 请改用 captureScreen()。
|
|
34
35
|
--- @return string|nil 图片ID
|
|
35
36
|
function _Image.captureFullScreen() return '' end
|
|
36
37
|
|
|
37
|
-
---
|
|
38
|
+
--- 区域截屏(兼容旧接口,请改用 captureScreen)
|
|
39
|
+
--- @deprecated 请改用 captureScreen(x, y, ex, ey)。
|
|
38
40
|
--- @param x integer|nil
|
|
39
41
|
--- @param y integer|nil
|
|
40
42
|
--- @param ex integer|nil 右下角x
|
|
@@ -203,5 +205,5 @@ function _Image.drawRect(id, x, y, ex, ey, color, thickness) end
|
|
|
203
205
|
--- 释放所有图片
|
|
204
206
|
function _Image.releaseAll() end
|
|
205
207
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
---@type Image
|
|
209
|
+
image = _Image
|
package/types/lua/ime.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Ime
|
|
3
3
|
local _Ime = {}
|
|
4
4
|
|
|
@@ -45,5 +45,5 @@ function _Ime.getClipboard() return '' end
|
|
|
45
45
|
--- @return boolean 成功
|
|
46
46
|
function _Ime.setClipboard(text) return true end
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
---@type Ime
|
|
49
|
+
ime = _Ime
|
package/types/lua/logger.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Logger
|
|
3
3
|
local _Logger = {}
|
|
4
4
|
|
|
@@ -45,5 +45,5 @@ function _Logger.warn(...) end
|
|
|
45
45
|
--- @return nil
|
|
46
46
|
function _Logger.error(...) end
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
---@type Logger
|
|
49
|
+
logger = _Logger
|
package/types/lua/media.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Media
|
|
3
3
|
local _Media = {}
|
|
4
4
|
|
|
@@ -43,5 +43,5 @@ function _Media.deleteAllVideos() return true end
|
|
|
43
43
|
--- @return boolean 成功
|
|
44
44
|
function _Media.deleteAllScreenshots() return true end
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
---@type Media
|
|
47
|
+
media = _Media
|
package/types/lua/mysql.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class MySQL
|
|
3
3
|
local _MySQL = {}
|
|
4
4
|
|
|
@@ -61,5 +61,5 @@ function _MySQL.commit() return true end
|
|
|
61
61
|
--- @return boolean 成功
|
|
62
62
|
function _MySQL.rollback() return true end
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
---@type MySQL
|
|
65
|
+
mysql = _MySQL
|
package/types/lua/netcard.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class NetCard
|
|
3
3
|
local _NetCard = {}
|
|
4
4
|
|
|
@@ -42,5 +42,5 @@ function _NetCard.setValue(key, value) return '' end
|
|
|
42
42
|
--- @return string 值
|
|
43
43
|
function _NetCard.getValue(key) return '' end
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
---@type NetCard
|
|
46
|
+
netcard = _NetCard
|
package/types/lua/node.lua
CHANGED
package/types/lua/paddleocr.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class PaddleOCR
|
|
3
3
|
local _PaddleOCR = {}
|
|
4
4
|
|
|
@@ -16,7 +16,8 @@ local _PaddleOCR = {}
|
|
|
16
16
|
---@field angle number 文本旋转角度 (度)
|
|
17
17
|
---@field orientation integer 文本方向 (0=水平,1=垂直 等)
|
|
18
18
|
|
|
19
|
-
--- 加载 V5
|
|
19
|
+
--- 加载 V5 模型(兼容旧接口,请改用 loadModel)
|
|
20
|
+
--- @deprecated 请改用 loadModel("ppocr-v5", useGpu);检测长边请使用 setMaxSideLen 单独设置。
|
|
20
21
|
--- @param maxSideLen integer|nil 目标边长,默认 640
|
|
21
22
|
--- @param useGpu boolean|nil 是否启用 GPU,默认 false
|
|
22
23
|
--- @return boolean 成功
|
|
@@ -33,7 +34,8 @@ function _PaddleOCR.loadModel(modelId, useGpu) return true end
|
|
|
33
34
|
--- @return boolean 成功
|
|
34
35
|
function _PaddleOCR.setMaxSideLen(maxSideLen) return true end
|
|
35
36
|
|
|
36
|
-
---
|
|
37
|
+
--- 识别文本(兼容旧接口,请改用 recognizeAbs)
|
|
38
|
+
--- @deprecated 请改用 recognizeAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
37
39
|
--- @param input string 图像ID或路径
|
|
38
40
|
--- @param x integer|nil 默认0
|
|
39
41
|
--- @param y integer|nil 默认0
|
|
@@ -61,7 +63,8 @@ function _PaddleOCR.recognizeAbs(input, x, y, ex, ey, confidenceThreshold)
|
|
|
61
63
|
return ret
|
|
62
64
|
end
|
|
63
65
|
|
|
64
|
-
---
|
|
66
|
+
--- 查找目标文本(兼容旧接口,请改用 findTextAbs)
|
|
67
|
+
--- @deprecated 请改用 findTextAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
65
68
|
--- @param input string 图像ID或路径
|
|
66
69
|
--- @param targets string[]|string 目标文本数组或逗号分隔字符串
|
|
67
70
|
--- @param x integer|nil 默认0
|
|
@@ -96,5 +99,5 @@ end
|
|
|
96
99
|
--- 释放资源
|
|
97
100
|
function _PaddleOCR.free() end
|
|
98
101
|
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
---@type PaddleOCR
|
|
103
|
+
paddleocr = _PaddleOCR
|
package/types/lua/pip.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Pip
|
|
3
3
|
local _Pip = {}
|
|
4
4
|
|
|
@@ -53,5 +53,5 @@ function _Pip.setCustomTextSize(fontSize) return true end
|
|
|
53
53
|
---@return boolean
|
|
54
54
|
function _Pip.setCustomBackgroundColor(color) return true end
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
---@type Pip
|
|
57
|
+
pip = _Pip
|
package/types/lua/system.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class System
|
|
3
3
|
local _System = {}
|
|
4
4
|
|
|
@@ -136,5 +136,5 @@ function _System.getAgentStatus() return false end
|
|
|
136
136
|
--- @return boolean 成功
|
|
137
137
|
function _System.stopAgent() return true end
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
---@type System
|
|
140
|
+
system = _System
|
package/types/lua/tomatoocr.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class TomatoOCR
|
|
3
3
|
local _TomatoOCR = {}
|
|
4
4
|
|
|
@@ -80,5 +80,5 @@ function _TomatoOCR.findTapPoints(js) return '' end
|
|
|
80
80
|
--- 释放已加载的 OCR 模型和内部资源
|
|
81
81
|
function _TomatoOCR.release() end
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
---@type TomatoOCR
|
|
84
|
+
tomatoocr = _TomatoOCR
|
package/types/lua/tts.lua
CHANGED
package/types/lua/ui.lua
CHANGED
package/types/lua/utils.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Utils
|
|
3
3
|
local _Utils = {}
|
|
4
4
|
|
|
@@ -46,5 +46,5 @@ function _Utils.hexStringBase64Encoded(hexString) return '' end
|
|
|
46
46
|
--- @return string hex
|
|
47
47
|
function _Utils.hexStringBase64Decoded(base64HexString) return '' end
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
---@type Utils
|
|
50
|
+
utils = _Utils
|
package/types/lua/yolo.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class Yolo
|
|
3
3
|
local _Yolo = {}
|
|
4
4
|
|
|
@@ -23,7 +23,8 @@ local _Yolo = {}
|
|
|
23
23
|
--- @return string|nil 模型ID(失败返回 nil)
|
|
24
24
|
function _Yolo.load(paramPath, binPath, nc, version, useGpu) return nil end
|
|
25
25
|
|
|
26
|
-
--- 加载 YOLOv11
|
|
26
|
+
--- 加载 YOLOv11 模型(兼容旧接口,请改用 load)
|
|
27
|
+
--- @deprecated 请改用 load(paramPath, binPath, nc, 11, useGpu)。
|
|
27
28
|
--- @param paramPath string ncnn param 路径
|
|
28
29
|
--- @param binPath string ncnn bin 路径
|
|
29
30
|
--- @param nc integer|nil 标签数量;传 0 或省略时按模型输出推断
|
|
@@ -31,7 +32,8 @@ function _Yolo.load(paramPath, binPath, nc, version, useGpu) return nil end
|
|
|
31
32
|
--- @return string|nil 模型ID(失败返回 nil)
|
|
32
33
|
function _Yolo.loadV11(paramPath, binPath, nc, useGpu) return nil end
|
|
33
34
|
|
|
34
|
-
---
|
|
35
|
+
--- 检测(兼容旧接口,请改用 detectAbs)
|
|
36
|
+
--- @deprecated 请改用 detectAbs,避免裁剪区域坐标和全屏坐标混用。
|
|
35
37
|
--- @param id string 模型ID
|
|
36
38
|
--- @param input string 图像ID或路径
|
|
37
39
|
--- @param target integer 目标边长(默认 640)
|
|
@@ -60,5 +62,5 @@ function _Yolo.free(id) end
|
|
|
60
62
|
--- 释放全部模型
|
|
61
63
|
function _Yolo.freeAll() end
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
---@type Yolo
|
|
66
|
+
yolo = _Yolo
|
package/types/lua/yolocls.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta
|
|
2
2
|
---@class YoloCls
|
|
3
3
|
local _YoloCls = {}
|
|
4
4
|
|
|
@@ -36,5 +36,5 @@ function _YoloCls.free(modelId) end
|
|
|
36
36
|
|
|
37
37
|
function _YoloCls.freeAll() end
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
---@type YoloCls
|
|
40
|
+
yolocls = _YoloCls
|
package/types/system.d.ts
CHANGED
|
@@ -58,6 +58,11 @@ declare namespace system {
|
|
|
58
58
|
* }
|
|
59
59
|
*/
|
|
60
60
|
function activateAppInfo(): AppInfo;
|
|
61
|
+
/**
|
|
62
|
+
* 获取前台运行的应用列表
|
|
63
|
+
* @returns 包含应用信息的字典数组,每个字典包含应用的Bundle ID和显示名称
|
|
64
|
+
*/
|
|
65
|
+
function foregroundAppInfos(): AppInfo[];
|
|
61
66
|
/**
|
|
62
67
|
* 获取后台运行的应用列表
|
|
63
68
|
* @returns 包含应用信息的字典数组,每个字典包含应用的Bundle ID和显示名称
|
package/types/ui.d.ts
CHANGED
|
@@ -58,6 +58,11 @@ declare namespace $系统 {
|
|
|
58
58
|
* }
|
|
59
59
|
*/
|
|
60
60
|
function 获取当前运行的应用(): APP信息;
|
|
61
|
+
/**
|
|
62
|
+
* 获取前台运行的应用列表
|
|
63
|
+
* @returns 包含应用信息的字典数组,每个字典包含应用的Bundle ID和显示名称
|
|
64
|
+
*/
|
|
65
|
+
function 获取前台运行的应用列表(): APP信息[];
|
|
61
66
|
/**
|
|
62
67
|
* 获取后台运行的应用列表
|
|
63
68
|
* @returns 包含应用信息的字典数组,每个字典包含应用的Bundle ID和显示名称
|