public static enum IDevice.DeviceState extends java.lang.Enum<IDevice.DeviceState>
Enum Constant and Description |
---|
BOOTLOADER |
DISCONNECTED |
OFFLINE |
ONLINE |
RECOVERY |
SIDELOAD
Device is in "sideload" state either through `adb sideload` or recovery menu
|
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getState() |
static IDevice.DeviceState |
getState(java.lang.String state)
Returns a
IDevice.DeviceState from the string returned by adb devices . |
static IDevice.DeviceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IDevice.DeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IDevice.DeviceState BOOTLOADER
public static final IDevice.DeviceState OFFLINE
public static final IDevice.DeviceState ONLINE
public static final IDevice.DeviceState RECOVERY
public static final IDevice.DeviceState SIDELOAD
public static final IDevice.DeviceState UNAUTHORIZED
public static final IDevice.DeviceState DISCONNECTED
public static IDevice.DeviceState[] values()
for (IDevice.DeviceState c : IDevice.DeviceState.values()) System.out.println(c);
public static IDevice.DeviceState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static IDevice.DeviceState getState(java.lang.String state)
IDevice.DeviceState
from the string returned by adb devices
.state
- the device state.IDevice.DeviceState
object or null
if the state is unknown.public java.lang.String getState()