You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="intent">The full name of the activity intent to start, e.g. "com.myapp/.MyActivity"</param>
183
+
/// <param name="arguments">Optional dictionary of additional arguments. Values from this dictionary take priority over other parameters.</param>
184
+
/// <param name="user">The user ID for which the activity is started. The current user is used by default.</param>
185
+
/// <param name="wait">Set to true to block the method call until the Activity Manager's process returns the control to the system. false by default.</param>
186
+
/// <param name="stop">Set to true to force stop the target app before starting the activity. false by default.</param>
187
+
/// <param name="windowingMode">The windowing mode to launch the activity into. Check WindowConfiguration.java for possible values (constants starting with WINDOWING_MODE_).</param>
188
+
/// <param name="activityType">The activity type to launch the activity as. Check WindowConfiguration.java for possible values (constants starting with ACTIVITY_TYPE_).</param>
189
+
/// <param name="action">Action name. The actual value for the Activity Manager's -a argument.</param>
190
+
/// <param name="uri">Unified resource identifier. The actual value for the Activity Manager's -d argument.</param>
191
+
/// <param name="mimeType">Mime type. The actual value for the Activity Manager's -t argument.</param>
192
+
/// <param name="identifier">Optional identifier. The actual value for the Activity Manager's -i argument.</param>
193
+
/// <param name="categories">One or more category names. The actual value(s) for the Activity Manager's -c argument.</param>
194
+
/// <param name="component">Component name. The actual value for the Activity Manager's -n argument.</param>
195
+
/// <param name="package">Package name. The actual value for the Activity Manager's -p argument.</param>
196
+
/// <param name="extras">Optional intent arguments. Must be represented as an array of arrays, where each subarray contains two or three string items: value type, key (variable name) and the value itself. Supported value types: s (string), sn (null), z (boolean), i (integer), l (long), f (float), u (uri), cn (component name), ia (Integer[]), ial (List<Integer>), la (Long[]), lal (List<Long>), fa (Float[]), fal (List<Float>), sa (String[]), sal (List<String>).</param>
197
+
/// <param name="flags">Intent startup-specific flags as a hexadecimal string. Check Intent documentation for available flag values (constants starting with FLAG_ACTIVITY_). Flag values can be merged using logical 'or' operation, e.g. "0x10200000".</param>
198
+
publicstaticvoidStartActivity(
199
+
IExecuteMethodexecuteMethod,
200
+
stringintent,
201
+
Dictionary<string,object>arguments=null,
202
+
stringuser=null,
203
+
bool?wait=null,
204
+
bool?stop=null,
205
+
int?windowingMode=null,
206
+
int?activityType=null,
207
+
stringaction=null,
208
+
stringuri=null,
209
+
stringmimeType=null,
210
+
stringidentifier=null,
211
+
string[]categories=null,
212
+
stringcomponent=null,
213
+
stringpackage=null,
214
+
string[][]extras=null,
215
+
stringflags=null)
216
+
{
217
+
if(string.IsNullOrEmpty(intent))
218
+
{
219
+
thrownewArgumentException("Activity intent must be set to a non-empty string",nameof(intent));
/// Install an app on the Android device using mobile: installApp script.
177
272
/// For documentation, see <see href="https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#mobile-installapp">mobile: installApp</see>.
/// Start an Android activity by providing its package name and activity name.
189
+
/// For documentation, see <see href="https://github.com/appium/appium-uiautomator2-driver#mobile-startactivity">mobile:startActivity</see>.
190
+
/// </summary>
191
+
/// <param name="intent">The full name of the activity intent to start, e.g. "com.myapp/.MyActivity"</param>
192
+
/// <param name="arguments">Optional dictionary of additional arguments. Values from this dictionary take priority over other parameters.</param>
193
+
/// <param name="user">The user ID for which the activity is started. The current user is used by default.</param>
194
+
/// <param name="wait">Set to true to block the method call until the Activity Manager's process returns the control to the system. false by default.</param>
195
+
/// <param name="stop">Set to true to force stop the target app before starting the activity. false by default.</param>
196
+
/// <param name="windowingMode">The windowing mode to launch the activity into. Check WindowConfiguration.java for possible values (constants starting with WINDOWING_MODE_).</param>
197
+
/// <param name="activityType">The activity type to launch the activity as. Check WindowConfiguration.java for possible values (constants starting with ACTIVITY_TYPE_).</param>
198
+
/// <param name="action">Action name. The actual value for the Activity Manager's -a argument.</param>
199
+
/// <param name="uri">Unified resource identifier. The actual value for the Activity Manager's -d argument.</param>
200
+
/// <param name="mimeType">Mime type. The actual value for the Activity Manager's -t argument.</param>
201
+
/// <param name="identifier">Optional identifier. The actual value for the Activity Manager's -i argument.</param>
202
+
/// <param name="categories">One or more category names. The actual value(s) for the Activity Manager's -c argument.</param>
203
+
/// <param name="component">Component name. The actual value for the Activity Manager's -n argument.</param>
204
+
/// <param name="package">Package name. The actual value for the Activity Manager's -p argument.</param>
205
+
/// <param name="extras">Optional intent arguments. Must be represented as an array of arrays, where each subarray contains two or three string items: value type, key (variable name) and the value itself. Supported value types: s (string), sn (null), z (boolean), i (integer), l (long), f (float), u (uri), cn (component name), ia (Integer[]), ial (List<Integer>), la (Long[]), lal (List<Long>), fa (Float[]), fal (List<Float>), sa (String[]), sal (List<String>).</param>
206
+
/// <param name="flags">Intent startup-specific flags as a hexadecimal string. Check Intent documentation for available flag values (constants starting with FLAG_ACTIVITY_). Flag values can be merged using logical 'or' operation, e.g. "0x10200000".</param>
0 commit comments