Enum AndroidServerFlag
- java.lang.Object
-
- java.lang.Enum<AndroidServerFlag>
-
- io.appium.java_client.service.local.flags.AndroidServerFlag
-
- All Implemented Interfaces:
ServerArgument
,java.io.Serializable
,java.lang.Comparable<AndroidServerFlag>
public enum AndroidServerFlag extends java.lang.Enum<AndroidServerFlag> implements ServerArgument
Here is the list of Android specific server arguments.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOTSTRAP_PORT_NUMBER
Port to use on device to talk to Appium.CHROME_DRIVER_EXECUTABLE
ChromeDriver executable full path.CHROME_DRIVER_PORT
Port upon which ChromeDriver will run.REBOOT
SUPPRESS_ADB_KILL_SERVER
If set, prevents Appium from killing the adb server instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArgument()
static AndroidServerFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AndroidServerFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOTSTRAP_PORT_NUMBER
public static final AndroidServerFlag BOOTSTRAP_PORT_NUMBER
Port to use on device to talk to Appium. Sample: --bootstrap-port 4724
-
SUPPRESS_ADB_KILL_SERVER
public static final AndroidServerFlag SUPPRESS_ADB_KILL_SERVER
If set, prevents Appium from killing the adb server instance. Default: false
-
CHROME_DRIVER_PORT
public static final AndroidServerFlag CHROME_DRIVER_PORT
Port upon which ChromeDriver will run. Sample: --chromedriver-port 9515
-
CHROME_DRIVER_EXECUTABLE
public static final AndroidServerFlag CHROME_DRIVER_EXECUTABLE
ChromeDriver executable full path.
-
REBOOT
public static final AndroidServerFlag REBOOT
-
-
Method Detail
-
values
public static AndroidServerFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AndroidServerFlag c : AndroidServerFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AndroidServerFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getArgument
public java.lang.String getArgument()
- Specified by:
getArgument
in interfaceServerArgument
-
-