appium-android-driver 5.13.0 → 5.13.2
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/CHANGELOG.md +14 -0
- package/build/index.js +43 -40
- package/build/lib/android-helpers.d.ts +136 -0
- package/build/lib/android-helpers.d.ts.map +1 -0
- package/build/lib/android-helpers.js +760 -679
- package/build/lib/android-helpers.js.map +1 -1
- package/build/lib/bootstrap.d.ts +29 -0
- package/build/lib/bootstrap.d.ts.map +1 -0
- package/build/lib/bootstrap.js +192 -179
- package/build/lib/bootstrap.js.map +1 -1
- package/build/lib/commands/actions.d.ts +209 -0
- package/build/lib/commands/actions.d.ts.map +1 -0
- package/build/lib/commands/actions.js +327 -265
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +10 -0
- package/build/lib/commands/alert.d.ts.map +1 -0
- package/build/lib/commands/alert.js +12 -18
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +314 -0
- package/build/lib/commands/app-management.d.ts.map +1 -0
- package/build/lib/commands/app-management.js +278 -110
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/context.d.ts +94 -0
- package/build/lib/commands/context.d.ts.map +1 -0
- package/build/lib/commands/context.js +412 -260
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/coverage.d.ts +5 -0
- package/build/lib/commands/coverage.d.ts.map +1 -0
- package/build/lib/commands/coverage.js +14 -17
- package/build/lib/commands/coverage.js.map +1 -1
- package/build/lib/commands/element.d.ts +36 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +97 -127
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/emu-console.d.ts +49 -0
- package/build/lib/commands/emu-console.d.ts.map +1 -0
- package/build/lib/commands/emu-console.js +36 -25
- package/build/lib/commands/emu-console.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -0
- package/build/lib/commands/execute.d.ts.map +1 -0
- package/build/lib/commands/execute.js +68 -69
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +129 -0
- package/build/lib/commands/file-actions.d.ts.map +1 -0
- package/build/lib/commands/file-actions.js +321 -178
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +13 -0
- package/build/lib/commands/find.d.ts.map +1 -0
- package/build/lib/commands/find.js +69 -51
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +133 -0
- package/build/lib/commands/general.d.ts.map +1 -0
- package/build/lib/commands/general.js +275 -216
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/ime.d.ts +11 -0
- package/build/lib/commands/ime.d.ts.map +1 -0
- package/build/lib/commands/ime.js +27 -33
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/index.d.ts +3 -0
- package/build/lib/commands/index.d.ts.map +1 -0
- package/build/lib/commands/index.js +32 -35
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/commands/intent.d.ts +418 -0
- package/build/lib/commands/intent.d.ts.map +1 -0
- package/build/lib/commands/intent.js +281 -151
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +6 -0
- package/build/lib/commands/keyboard.d.ts.map +1 -0
- package/build/lib/commands/keyboard.js +6 -14
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/log.d.ts +45 -0
- package/build/lib/commands/log.d.ts.map +1 -0
- package/build/lib/commands/log.js +117 -103
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +144 -0
- package/build/lib/commands/media-projection.d.ts.map +1 -0
- package/build/lib/commands/media-projection.js +228 -171
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/network.d.ts +139 -0
- package/build/lib/commands/network.d.ts.map +1 -0
- package/build/lib/commands/network.js +249 -181
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/performance.d.ts +101 -0
- package/build/lib/commands/performance.d.ts.map +1 -0
- package/build/lib/commands/performance.js +390 -236
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +93 -0
- package/build/lib/commands/permissions.d.ts.map +1 -0
- package/build/lib/commands/permissions.js +133 -93
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +194 -0
- package/build/lib/commands/recordscreen.d.ts.map +1 -0
- package/build/lib/commands/recordscreen.js +293 -224
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/shell.d.ts +8 -0
- package/build/lib/commands/shell.d.ts.map +1 -0
- package/build/lib/commands/shell.js +38 -43
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +104 -0
- package/build/lib/commands/streamscreen.d.ts.map +1 -0
- package/build/lib/commands/streamscreen.js +364 -305
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +100 -0
- package/build/lib/commands/system-bars.d.ts.map +1 -0
- package/build/lib/commands/system-bars.js +148 -90
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/touch.d.ts +30 -0
- package/build/lib/commands/touch.d.ts.map +1 -0
- package/build/lib/commands/touch.js +311 -287
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/desired-caps.d.ts +353 -0
- package/build/lib/desired-caps.d.ts.map +1 -0
- package/build/lib/desired-caps.js +291 -292
- package/build/lib/desired-caps.js.map +1 -1
- package/build/lib/driver.d.ts +430 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +449 -384
- package/build/lib/driver.js.map +1 -1
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +5 -11
- package/build/lib/logger.js.map +1 -1
- package/build/lib/method-map.d.ts +389 -0
- package/build/lib/method-map.d.ts.map +1 -0
- package/build/lib/method-map.js +220 -394
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/stubs.d.ts +8 -0
- package/build/lib/stubs.d.ts.map +1 -0
- package/build/lib/stubs.js +5 -0
- package/build/lib/stubs.js.map +1 -0
- package/build/lib/uiautomator.d.ts +24 -0
- package/build/lib/uiautomator.d.ts.map +1 -0
- package/build/lib/uiautomator.js +86 -82
- package/build/lib/uiautomator.js.map +1 -1
- package/build/lib/unlock-helpers.d.ts +38 -0
- package/build/lib/unlock-helpers.d.ts.map +1 -0
- package/build/lib/unlock-helpers.js +228 -204
- package/build/lib/unlock-helpers.js.map +1 -1
- package/build/lib/utils.d.ts +11 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +23 -18
- package/build/lib/utils.js.map +1 -1
- package/build/lib/webview-helpers.d.ts +223 -0
- package/build/lib/webview-helpers.d.ts.map +1 -0
- package/build/lib/webview-helpers.js +476 -298
- package/build/lib/webview-helpers.js.map +1 -1
- package/index.js +3 -1
- package/lib/android-helpers.js +2 -1
- package/lib/stubs.ts +8 -0
- package/lib/unlock-helpers.js +2 -2
- package/package.json +23 -14
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
export default commands;
|
|
2
|
+
export type StartActivityOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* ['current'] - The user ID for which the service is started.
|
|
5
|
+
* The `current` user id is used by default
|
|
6
|
+
*/
|
|
7
|
+
user: (string | number) | null;
|
|
8
|
+
/**
|
|
9
|
+
* [false] - Set it to `true` if you want to block the method call
|
|
10
|
+
* until the activity manager's process returns the control to the system.
|
|
11
|
+
*/
|
|
12
|
+
wait: boolean | null;
|
|
13
|
+
/**
|
|
14
|
+
* [false] - Set it to `true` to force stop the target
|
|
15
|
+
* app before starting the activity
|
|
16
|
+
*/
|
|
17
|
+
stop: boolean | null;
|
|
18
|
+
/**
|
|
19
|
+
* - The windowing mode to launch the activity into.
|
|
20
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
21
|
+
* for more details on possible windowing modes (constants starting with `WINDOWING_MODE_`).
|
|
22
|
+
*/
|
|
23
|
+
windowingMode: (number | string) | null;
|
|
24
|
+
/**
|
|
25
|
+
* - The activity type to launch the activity as.
|
|
26
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
27
|
+
* for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
|
|
28
|
+
*/
|
|
29
|
+
activityType: (number | string) | null;
|
|
30
|
+
/**
|
|
31
|
+
* - The display identifier to launch the activity into.
|
|
32
|
+
*/
|
|
33
|
+
display: (number | string) | null;
|
|
34
|
+
/**
|
|
35
|
+
* - The name of the activity intent to start, for example
|
|
36
|
+
* `com.some.package.name/.YourServiceSubClassName`
|
|
37
|
+
*/
|
|
38
|
+
intent: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* - Action name
|
|
41
|
+
*/
|
|
42
|
+
action: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* - Package name
|
|
45
|
+
*/
|
|
46
|
+
package: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* - Unified resource identifier
|
|
49
|
+
*/
|
|
50
|
+
uri: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* - Mime type
|
|
53
|
+
*/
|
|
54
|
+
mimeType: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* - Optional identifier
|
|
57
|
+
*/
|
|
58
|
+
identifier: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* - One or more category names
|
|
61
|
+
*/
|
|
62
|
+
categories: (string | Array<string>) | null;
|
|
63
|
+
/**
|
|
64
|
+
* - Component name
|
|
65
|
+
*/
|
|
66
|
+
component: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* - Optional intent arguments. Must be represented
|
|
69
|
+
* as array of arrays, where each subarray item contains two or three string items:
|
|
70
|
+
* value type, key name and the value itself.
|
|
71
|
+
* Supported value types are:
|
|
72
|
+
* - s: string. Value must be a valid string
|
|
73
|
+
* - sn: null. Value is ignored for this type
|
|
74
|
+
* - z: boolean. Value must be either `true` or `false`
|
|
75
|
+
* - i: integer. Value must be a valid 4-byte integer number
|
|
76
|
+
* - l: long. Value must be a valid 8-byte long number
|
|
77
|
+
* - f: float: Value must be a valid float number
|
|
78
|
+
* - u: uri. Value must be a valid uniform resource identifier string
|
|
79
|
+
* - cn: component name. Value must be a valid component name string
|
|
80
|
+
* - ia: Integer[]. Value must be a string of comma-separated integers
|
|
81
|
+
* - ial: List<Integer>. Value must be a string of comma-separated integers
|
|
82
|
+
* - la: Long[]. Value must be a string of comma-separated long numbers
|
|
83
|
+
* - lal: List<Long>. Value must be a string of comma-separated long numbers
|
|
84
|
+
* - fa: Float[]. Value must be a string of comma-separated float numbers
|
|
85
|
+
* - fal: List<Float>. Value must be a string of comma-separated float numbers
|
|
86
|
+
* - sa: String[]. Value must be comma-separated strings. To embed a comma into a string,
|
|
87
|
+
* escape it using "\,"
|
|
88
|
+
* - sal: List<String>. Value must be comma-separated strings. To embed a comma into a string,
|
|
89
|
+
* escape it using "\,"
|
|
90
|
+
* For example: [['s', 'varName1', 'My String1'], ['s', 'varName2', 'My String2'], ['ia', 'arrName', '1,2,3,4']]
|
|
91
|
+
*/
|
|
92
|
+
extras: Array<string | Array<string>>;
|
|
93
|
+
/**
|
|
94
|
+
* - Intent startup-specific flags as a hexadecimal string.
|
|
95
|
+
* See https://developer.android.com/reference/android/content/Intent.html
|
|
96
|
+
* for the list of available flag values (constants starting with FLAG_ACTIVITY_).
|
|
97
|
+
* Flag values could be merged using the logical 'or' operation.
|
|
98
|
+
* For example, 0x10200000 is the combination of two flags:
|
|
99
|
+
* 0x10000000 `FLAG_ACTIVITY_NEW_TASK` | 0x00200000 `FLAG_ACTIVITY_RESET_TASK_IF_NEEDED`
|
|
100
|
+
*/
|
|
101
|
+
flags: string | null;
|
|
102
|
+
};
|
|
103
|
+
export type BroadcastOptions = {
|
|
104
|
+
/**
|
|
105
|
+
* ['all'] - The user ID for which the broadcast is sent.
|
|
106
|
+
* The `current` alias assumes the current user ID.
|
|
107
|
+
*/
|
|
108
|
+
user: (string | number) | null;
|
|
109
|
+
/**
|
|
110
|
+
* - Require receiver to hold the given permission.
|
|
111
|
+
*/
|
|
112
|
+
receiverPermission: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* [false] - Whether the receiver may
|
|
115
|
+
* start activities even if in the background.
|
|
116
|
+
*/
|
|
117
|
+
allowBackgroundActivityStarts: boolean | null;
|
|
118
|
+
/**
|
|
119
|
+
* - The name of the intent to broadcast to, for example
|
|
120
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
121
|
+
*/
|
|
122
|
+
intent: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* - Action name
|
|
125
|
+
*/
|
|
126
|
+
action: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* - Unified resource identifier
|
|
129
|
+
*/
|
|
130
|
+
uri: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* - Mime type
|
|
133
|
+
*/
|
|
134
|
+
mimeType: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* - Optional identifier
|
|
137
|
+
*/
|
|
138
|
+
identifier: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* - One or more category names
|
|
141
|
+
*/
|
|
142
|
+
categories: (string | Array<string>) | null;
|
|
143
|
+
/**
|
|
144
|
+
* - Component name
|
|
145
|
+
*/
|
|
146
|
+
component: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* - Package name
|
|
149
|
+
*/
|
|
150
|
+
package: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* - Optional intent arguments.
|
|
153
|
+
* See above for the detailed description.
|
|
154
|
+
*/
|
|
155
|
+
extras: Array<Array<string>>;
|
|
156
|
+
/**
|
|
157
|
+
* - Intent startup-specific flags as a hexadecimal string.
|
|
158
|
+
* See above for the detailed description.
|
|
159
|
+
*/
|
|
160
|
+
flags: string | null;
|
|
161
|
+
};
|
|
162
|
+
export type StartServiceOptions = {
|
|
163
|
+
/**
|
|
164
|
+
* ['current'] - The user ID for which the service is started.
|
|
165
|
+
* The `current` user id is used by default
|
|
166
|
+
*/
|
|
167
|
+
user: (string | number) | null;
|
|
168
|
+
/**
|
|
169
|
+
* [false] - Set it to `true` if your service must be
|
|
170
|
+
* started as foreground service. This option is ignored if the API level of the
|
|
171
|
+
* device under test is below 26 (Android 8).
|
|
172
|
+
*/
|
|
173
|
+
foreground: boolean | null;
|
|
174
|
+
/**
|
|
175
|
+
* - The name of the service intent to start, for example
|
|
176
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
177
|
+
*/
|
|
178
|
+
intent: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* - Action name
|
|
181
|
+
*/
|
|
182
|
+
action: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* - Unified resource identifier
|
|
185
|
+
*/
|
|
186
|
+
uri: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* - Mime type
|
|
189
|
+
*/
|
|
190
|
+
mimeType: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* - Optional identifier
|
|
193
|
+
*/
|
|
194
|
+
identifier: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* - One or more category names
|
|
197
|
+
*/
|
|
198
|
+
categories: (string | Array<string>) | null;
|
|
199
|
+
/**
|
|
200
|
+
* - Component name
|
|
201
|
+
*/
|
|
202
|
+
component: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* - Package name
|
|
205
|
+
*/
|
|
206
|
+
package: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* - Optional intent arguments.
|
|
209
|
+
* See above for the detailed description.
|
|
210
|
+
*/
|
|
211
|
+
extras: Array<Array<string>>;
|
|
212
|
+
/**
|
|
213
|
+
* - Intent startup-specific flags as a hexadecimal string.
|
|
214
|
+
* See above for the detailed description.
|
|
215
|
+
*/
|
|
216
|
+
flags: string | null;
|
|
217
|
+
};
|
|
218
|
+
export type StopServiceOptions = {
|
|
219
|
+
/**
|
|
220
|
+
* ['current'] - The user ID for which the service is running.
|
|
221
|
+
* The `current` user id is used by default
|
|
222
|
+
*/
|
|
223
|
+
user: string | number;
|
|
224
|
+
/**
|
|
225
|
+
* - The name of the service intent to stop, for example
|
|
226
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
227
|
+
*/
|
|
228
|
+
intent: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* - Action name
|
|
231
|
+
*/
|
|
232
|
+
action: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* - Unified resource identifier
|
|
235
|
+
*/
|
|
236
|
+
uri: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* - Mime type
|
|
239
|
+
*/
|
|
240
|
+
mimeType: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* - Optional identifier
|
|
243
|
+
*/
|
|
244
|
+
identifier: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* - One or more category names
|
|
247
|
+
*/
|
|
248
|
+
categories: (string | Array<string>) | null;
|
|
249
|
+
/**
|
|
250
|
+
* - Component name
|
|
251
|
+
*/
|
|
252
|
+
component: string | null;
|
|
253
|
+
/**
|
|
254
|
+
* - Package name
|
|
255
|
+
*/
|
|
256
|
+
package: string | null;
|
|
257
|
+
/**
|
|
258
|
+
* - Optional intent arguments.
|
|
259
|
+
* See above for the detailed description.
|
|
260
|
+
*/
|
|
261
|
+
extras: Array<Array<string>>;
|
|
262
|
+
/**
|
|
263
|
+
* - See above for the detailed description.
|
|
264
|
+
*/
|
|
265
|
+
flags: string | null;
|
|
266
|
+
};
|
|
267
|
+
export namespace commands {
|
|
268
|
+
/**
|
|
269
|
+
* @typedef {Object} StartActivityOptions
|
|
270
|
+
* @property {?string|number} user ['current'] - The user ID for which the service is started.
|
|
271
|
+
* The `current` user id is used by default
|
|
272
|
+
* @property {?boolean} wait [false] - Set it to `true` if you want to block the method call
|
|
273
|
+
* until the activity manager's process returns the control to the system.
|
|
274
|
+
* @property {?boolean} stop [false] - Set it to `true` to force stop the target
|
|
275
|
+
* app before starting the activity
|
|
276
|
+
* @property {?number|string} windowingMode - The windowing mode to launch the activity into.
|
|
277
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
278
|
+
* for more details on possible windowing modes (constants starting with `WINDOWING_MODE_`).
|
|
279
|
+
* @property {?number|string} activityType - The activity type to launch the activity as.
|
|
280
|
+
* Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/WindowConfiguration.java
|
|
281
|
+
* for more details on possible activity types (constants starting with `ACTIVITY_TYPE_`).
|
|
282
|
+
* @property {?number|string} display - The display identifier to launch the activity into.
|
|
283
|
+
* @property {?string} intent - The name of the activity intent to start, for example
|
|
284
|
+
* `com.some.package.name/.YourServiceSubClassName`
|
|
285
|
+
* @property {?string} action - Action name
|
|
286
|
+
* @property {?string} package - Package name
|
|
287
|
+
* @property {?string} uri - Unified resource identifier
|
|
288
|
+
* @property {?string} mimeType - Mime type
|
|
289
|
+
* @property {?string} identifier - Optional identifier
|
|
290
|
+
* @property {?string|Array<string>} categories - One or more category names
|
|
291
|
+
* @property {?string} component - Component name
|
|
292
|
+
* @property {Array<string|Array<string>>} extras - Optional intent arguments. Must be represented
|
|
293
|
+
* as array of arrays, where each subarray item contains two or three string items:
|
|
294
|
+
* value type, key name and the value itself.
|
|
295
|
+
* Supported value types are:
|
|
296
|
+
* - s: string. Value must be a valid string
|
|
297
|
+
* - sn: null. Value is ignored for this type
|
|
298
|
+
* - z: boolean. Value must be either `true` or `false`
|
|
299
|
+
* - i: integer. Value must be a valid 4-byte integer number
|
|
300
|
+
* - l: long. Value must be a valid 8-byte long number
|
|
301
|
+
* - f: float: Value must be a valid float number
|
|
302
|
+
* - u: uri. Value must be a valid uniform resource identifier string
|
|
303
|
+
* - cn: component name. Value must be a valid component name string
|
|
304
|
+
* - ia: Integer[]. Value must be a string of comma-separated integers
|
|
305
|
+
* - ial: List<Integer>. Value must be a string of comma-separated integers
|
|
306
|
+
* - la: Long[]. Value must be a string of comma-separated long numbers
|
|
307
|
+
* - lal: List<Long>. Value must be a string of comma-separated long numbers
|
|
308
|
+
* - fa: Float[]. Value must be a string of comma-separated float numbers
|
|
309
|
+
* - fal: List<Float>. Value must be a string of comma-separated float numbers
|
|
310
|
+
* - sa: String[]. Value must be comma-separated strings. To embed a comma into a string,
|
|
311
|
+
* escape it using "\,"
|
|
312
|
+
* - sal: List<String>. Value must be comma-separated strings. To embed a comma into a string,
|
|
313
|
+
* escape it using "\,"
|
|
314
|
+
* For example: [['s', 'varName1', 'My String1'], ['s', 'varName2', 'My String2'], ['ia', 'arrName', '1,2,3,4']]
|
|
315
|
+
* @property {?string} flags - Intent startup-specific flags as a hexadecimal string.
|
|
316
|
+
* See https://developer.android.com/reference/android/content/Intent.html
|
|
317
|
+
* for the list of available flag values (constants starting with FLAG_ACTIVITY_).
|
|
318
|
+
* Flag values could be merged using the logical 'or' operation.
|
|
319
|
+
* For example, 0x10200000 is the combination of two flags:
|
|
320
|
+
* 0x10000000 `FLAG_ACTIVITY_NEW_TASK` | 0x00200000 `FLAG_ACTIVITY_RESET_TASK_IF_NEEDED`
|
|
321
|
+
*/
|
|
322
|
+
/**
|
|
323
|
+
* Starts the given activity intent.
|
|
324
|
+
*
|
|
325
|
+
* @param {StartActivityOptions} opts
|
|
326
|
+
* @returns {string} The command output
|
|
327
|
+
* @throws {Error} If there was a failure while starting the activity
|
|
328
|
+
* or required options are missing
|
|
329
|
+
*/
|
|
330
|
+
function mobileStartActivity(opts?: StartActivityOptions): string;
|
|
331
|
+
/**
|
|
332
|
+
* @typedef {Object} BroadcastOptions
|
|
333
|
+
* @property {?string|number} user ['all'] - The user ID for which the broadcast is sent.
|
|
334
|
+
* The `current` alias assumes the current user ID.
|
|
335
|
+
* @property {?string} receiverPermission - Require receiver to hold the given permission.
|
|
336
|
+
* @property {?boolean} allowBackgroundActivityStarts [false] - Whether the receiver may
|
|
337
|
+
* start activities even if in the background.
|
|
338
|
+
* @property {?string} intent - The name of the intent to broadcast to, for example
|
|
339
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
340
|
+
* @property {?string} action - Action name
|
|
341
|
+
* @property {?string} uri - Unified resource identifier
|
|
342
|
+
* @property {?string} mimeType - Mime type
|
|
343
|
+
* @property {?string} identifier - Optional identifier
|
|
344
|
+
* @property {?string|Array<string>} categories - One or more category names
|
|
345
|
+
* @property {?string} component - Component name
|
|
346
|
+
* @property {?string} package - Package name
|
|
347
|
+
* @property {Array<Array<string>>} extras - Optional intent arguments.
|
|
348
|
+
* See above for the detailed description.
|
|
349
|
+
* @property {?string} flags - Intent startup-specific flags as a hexadecimal string.
|
|
350
|
+
* See above for the detailed description.
|
|
351
|
+
*/
|
|
352
|
+
/**
|
|
353
|
+
* Send a broadcast intent.
|
|
354
|
+
*
|
|
355
|
+
* @param {BroadcastOptions} opts
|
|
356
|
+
* @returns {string} The command output
|
|
357
|
+
* @throws {Error} If there was a failure while starting the activity
|
|
358
|
+
* or required options are missing
|
|
359
|
+
*/
|
|
360
|
+
function mobileBroadcast(opts?: BroadcastOptions): string;
|
|
361
|
+
/**
|
|
362
|
+
* @typedef {Object} StartServiceOptions
|
|
363
|
+
* @property {?string|number} user ['current'] - The user ID for which the service is started.
|
|
364
|
+
* The `current` user id is used by default
|
|
365
|
+
* @property {?boolean} foreground [false] - Set it to `true` if your service must be
|
|
366
|
+
* started as foreground service. This option is ignored if the API level of the
|
|
367
|
+
* device under test is below 26 (Android 8).
|
|
368
|
+
* @property {?string} intent - The name of the service intent to start, for example
|
|
369
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
370
|
+
* @property {?string} action - Action name
|
|
371
|
+
* @property {?string} uri - Unified resource identifier
|
|
372
|
+
* @property {?string} mimeType - Mime type
|
|
373
|
+
* @property {?string} identifier - Optional identifier
|
|
374
|
+
* @property {?string|Array<string>} categories - One or more category names
|
|
375
|
+
* @property {?string} component - Component name
|
|
376
|
+
* @property {?string} package - Package name
|
|
377
|
+
* @property {Array<Array<string>>} extras - Optional intent arguments.
|
|
378
|
+
* See above for the detailed description.
|
|
379
|
+
* @property {?string} flags - Intent startup-specific flags as a hexadecimal string.
|
|
380
|
+
* See above for the detailed description.
|
|
381
|
+
*/
|
|
382
|
+
/**
|
|
383
|
+
* Starts the given service intent.
|
|
384
|
+
*
|
|
385
|
+
* @param {StartServiceOptions} opts
|
|
386
|
+
* @returns {string} The command output
|
|
387
|
+
* @throws {Error} If there was a failure while starting the service
|
|
388
|
+
* or required options are missing
|
|
389
|
+
*/
|
|
390
|
+
function mobileStartService(opts?: StartServiceOptions): string;
|
|
391
|
+
/**
|
|
392
|
+
* @typedef {Object} StopServiceOptions
|
|
393
|
+
* @property {string|number} user ['current'] - The user ID for which the service is running.
|
|
394
|
+
* The `current` user id is used by default
|
|
395
|
+
* @property {?string} intent - The name of the service intent to stop, for example
|
|
396
|
+
* `com.some.package.name/.YourServiceSubClassName`.
|
|
397
|
+
* @property {?string} action - Action name
|
|
398
|
+
* @property {?string} uri - Unified resource identifier
|
|
399
|
+
* @property {?string} mimeType - Mime type
|
|
400
|
+
* @property {?string} identifier - Optional identifier
|
|
401
|
+
* @property {?string|Array<string>} categories - One or more category names
|
|
402
|
+
* @property {?string} component - Component name
|
|
403
|
+
* @property {?string} package - Package name
|
|
404
|
+
* @property {Array<Array<string>>} extras - Optional intent arguments.
|
|
405
|
+
* See above for the detailed description.
|
|
406
|
+
* @property {?string} flags - See above for the detailed description.
|
|
407
|
+
*/
|
|
408
|
+
/**
|
|
409
|
+
* Stops the given service intent.
|
|
410
|
+
*
|
|
411
|
+
* @param {StopServiceOptions} opts
|
|
412
|
+
* @returns {string} The command output
|
|
413
|
+
* @throws {Error} If there was a failure while stopping the service
|
|
414
|
+
* or required options are missing
|
|
415
|
+
*/
|
|
416
|
+
function mobileStopService(opts?: StopServiceOptions): string;
|
|
417
|
+
}
|
|
418
|
+
//# sourceMappingURL=intent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../lib/commands/intent.js"],"names":[],"mappings":";;;;;;WA6Fe,MAAM,GAAC,MAAM;;;;;UAEb,OAAO;;;;;UAEP,OAAO;;;;;;oBAEP,MAAM,GAAC,MAAM;;;;;;mBAGb,MAAM,GAAC,MAAM;;;;cAGb,MAAM,GAAC,MAAM;;;;;YACb,MAAM;;;;YAEN,MAAM;;;;aACN,MAAM;;;;SACN,MAAM;;;;cACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM,GAAC,MAAM,MAAM,CAAC;;;;eACpB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;YACP,MAAM,MAAM,GAAC,MAAM,MAAM,CAAC,CAAC;;;;;;;;;WAuB1B,MAAM;;;;;;;WAoDN,MAAM,GAAC,MAAM;;;;wBAEb,MAAM;;;;;mCACN,OAAO;;;;;YAEP,MAAM;;;;YAEN,MAAM;;;;SACN,MAAM;;;;cACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM,GAAC,MAAM,MAAM,CAAC;;;;eACpB,MAAM;;;;aACN,MAAM;;;;;YACP,MAAM,MAAM,MAAM,CAAC,CAAC;;;;;WAEnB,MAAM;;;;;;;WAmCN,MAAM,GAAC,MAAM;;;;;;gBAEb,OAAO;;;;;YAGP,MAAM;;;;YAEN,MAAM;;;;SACN,MAAM;;;;cACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM,GAAC,MAAM,MAAM,CAAC;;;;eACpB,MAAM;;;;aACN,MAAM;;;;;YACP,MAAM,MAAM,MAAM,CAAC,CAAC;;;;;WAEnB,MAAM;;;;;;;UAgCP,MAAM,GAAC,MAAM;;;;;YAEZ,MAAM;;;;YAEN,MAAM;;;;SACN,MAAM;;;;cACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM,GAAC,MAAM,MAAM,CAAC;;;;eACpB,MAAM;;;;aACN,MAAM;;;;;YACP,MAAM,MAAM,MAAM,CAAC,CAAC;;;;WAEnB,MAAM;;;IAnNrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IAEH;;;;;;;OAOG;IACH,kEAgCC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IAGH;;;;;;;OAOG;IACH,0DAkBC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IAEH;;;;;;;OAOG;IACH,gEAgBC;IAED;;;;;;;;;;;;;;;;OAgBG;IAEH;;;;;;;OAOG;IACH,8DAaC"}
|