assistsx-js 0.0.2048 → 0.0.2049
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/dist/AssistsX.d.ts +12 -0
- package/dist/AssistsX.js +22 -0
- package/dist/AssistsXAsync.d.ts +16 -0
- package/dist/AssistsXAsync.js +22 -0
- package/dist/CallMethod.d.ts +2 -0
- package/dist/CallMethod.js +2 -0
- package/package.json +1 -1
- package/src/AssistsX.ts +976 -954
- package/src/AssistsXAsync.ts +1044 -1012
- package/src/CallMethod.ts +62 -60
package/src/CallMethod.ts
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
1
|
// CallMethod 常量对象
|
|
2
2
|
export const CallMethod = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
3
|
+
takeScreenshot: "takeScreenshot",
|
|
4
|
+
overlayToast: "overlayToast",
|
|
5
|
+
setNodeText: "setNodeText",
|
|
6
|
+
findByTags: "findByTags",
|
|
7
|
+
findById: "findById",
|
|
8
|
+
findByText: "findByText",
|
|
9
|
+
findByTextAllMatch: "findByTextAllMatch",
|
|
10
|
+
containsText: "containsText",
|
|
11
|
+
getAllText: "getAllText",
|
|
12
|
+
findFirstParentByTags: "findFirstParentByTags",
|
|
13
|
+
getAllNodes: "getAllNodes",
|
|
14
|
+
getNodes: "getNodes",
|
|
15
|
+
findFirstParentClickable: "findFirstParentClickable",
|
|
16
|
+
getChildren: "getChildren",
|
|
17
|
+
getBoundsInScreen: "getBoundsInScreen",
|
|
18
|
+
isVisible: "isVisible",
|
|
19
|
+
click: "click",
|
|
20
|
+
longClick: "longClick",
|
|
21
|
+
back: "back",
|
|
22
|
+
home: "home",
|
|
23
|
+
notifications: "notifications",
|
|
24
|
+
recentApps: "recentApps",
|
|
25
|
+
paste: "paste",
|
|
26
|
+
focus: "focus",
|
|
27
|
+
selectionText: "selectionText",
|
|
28
|
+
scrollForward: "scrollForward",
|
|
29
|
+
launchApp: "launchApp",
|
|
30
|
+
getPackageName: "getPackageName",
|
|
31
|
+
getScreenSize: "getScreenSize",
|
|
32
|
+
getAppScreenSize: "getAppScreenSize",
|
|
33
|
+
scrollBackward: "scrollBackward",
|
|
34
|
+
setOverlayFlags: "setOverlayFlags",
|
|
35
|
+
scanQR: "scanQR",
|
|
36
|
+
loadWebViewOverlay: "loadWebViewOverlay",
|
|
37
|
+
recognizeTextInScreenshot: "recognizeTextInScreenshot",
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
clickByGesture: "clickByGesture",
|
|
40
|
+
clickNodeByGesture: "clickNodeByGesture",
|
|
41
|
+
doubleClickNodeByGesture: "doubleClickNodeByGesture",
|
|
42
|
+
performLinearGesture: "performLinearGesture",
|
|
43
|
+
longPressGestureAutoPaste: "longPressGestureAutoPaste",
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
getAppInfo: "getAppInfo",
|
|
46
|
+
getMacAddress: "getMacAddress",
|
|
47
|
+
getAndroidID: "getAndroidID",
|
|
48
|
+
getUniqueDeviceId: "getUniqueDeviceId",
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
addAccessibilityEventFilter: "addAccessibilityEventFilter",
|
|
51
|
+
setAccessibilityEventFilters: "setAccessibilityEventFilters",
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
httpRequest: "httpRequest",
|
|
54
|
+
getDeviceInfo: "getDeviceInfo",
|
|
55
|
+
getNetworkType: "getNetworkType",
|
|
56
|
+
isAppInstalled: "isAppInstalled",
|
|
57
|
+
getClipboardLatestText: "getClipboardLatestText",
|
|
58
|
+
openUrlInBrowser: "openUrlInBrowser",
|
|
59
|
+
keepScreenOn: "keepScreenOn",
|
|
60
|
+
clearKeepScreenOn: "clearKeepScreenOn",
|
|
61
|
+
download: "download",
|
|
62
|
+
audioPlayFromFile: "audioPlayFromFile",
|
|
63
|
+
audioStop: "audioStop",
|
|
64
|
+
audioPlayRingtone: "audioPlayRingtone",
|
|
65
|
+
audioStopRingtone: "audioStopRingtone",
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
// 通讯录相关方法
|
|
68
|
+
addContact: "addContact",
|
|
69
|
+
getAllContacts: "getAllContacts",
|
|
68
70
|
} as const;
|
|
69
71
|
|
|
70
72
|
// 导出类型定义
|