public static enum LegoDevice.DeviceState extends java.lang.Enum<LegoDevice.DeviceState>
Enum Constant and Description |
---|
DEVICE_CONNECTION_STATE_CONNECTING
A connection attempt is in progress
|
DEVICE_CONNECTION_STATE_DISCONNECTED_ADVERTISING
The Device is disconnected and no connection attempt is in progress
|
DEVICE_CONNECTION_STATE_DISCONNECTED_NOT_ADVERTISING
The Device is disconnected and no longer advertising - the device also returns to this state after a successful connection has been closed
|
DEVICE_CONNECTION_STATE_INTERROGATING
Connected and interrogating Device for required services
|
DEVICE_CONNECTION_STATE_INTERROGATION_FINISHED
Connected and interrogation complete - device is ready for use
|
Modifier and Type | Method and Description |
---|---|
static LegoDevice.DeviceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LegoDevice.DeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegoDevice.DeviceState DEVICE_CONNECTION_STATE_DISCONNECTED_ADVERTISING
public static final LegoDevice.DeviceState DEVICE_CONNECTION_STATE_DISCONNECTED_NOT_ADVERTISING
public static final LegoDevice.DeviceState DEVICE_CONNECTION_STATE_CONNECTING
public static final LegoDevice.DeviceState DEVICE_CONNECTION_STATE_INTERROGATING
public static final LegoDevice.DeviceState DEVICE_CONNECTION_STATE_INTERROGATION_FINISHED
public static LegoDevice.DeviceState[] values()
for (LegoDevice.DeviceState c : LegoDevice.DeviceState.values()) System.out.println(c);
public static LegoDevice.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