Class ActivityOptions
- java.lang.Object
-
- io.appium.java_client.remote.options.BaseMapOptionData<ActivityOptions>
-
- io.appium.java_client.android.options.app.ActivityOptions
-
public class ActivityOptions extends BaseMapOptionData<ActivityOptions>
-
-
Constructor Summary
Constructors Constructor Description ActivityOptions()
ActivityOptions(java.util.Map<java.lang.String,java.lang.Object> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
getLaunchDisplayId()
Get display id which you want to assign to launch the main app activity on.ActivityOptions
withLaunchDisplayId(int id)
Display id which you want to assign to launch the main app activity on.-
Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
-
-
-
Method Detail
-
withLaunchDisplayId
public ActivityOptions withLaunchDisplayId(int id)
Display id which you want to assign to launch the main app activity on. This might be useful if the device under test supports multiple displays.- Parameters:
id
- Display identifier.- Returns:
- self instance for chaining.
-
getLaunchDisplayId
public java.util.Optional<java.lang.Integer> getLaunchDisplayId()
Get display id which you want to assign to launch the main app activity on.- Returns:
- Display identifier.
-
-