public static enum ConnectFailBluetoothGatt.FailurePoint extends java.lang.Enum<ConnectFailBluetoothGatt.FailurePoint>
Enum Constant and Description |
---|
POST_CONNECTING_BLE
This simulates a failure that happens after the device gets into the connecting state.
|
PRE_CONNECTING_BLE
This simulates a failure that happens before the device even gets to the connecting state.
|
SERVICE_DISCOVERY
This simulates a failure after actually getting connected, but service discovery fails.
|
Modifier and Type | Method and Description |
---|---|
static ConnectFailBluetoothGatt.FailurePoint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectFailBluetoothGatt.FailurePoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectFailBluetoothGatt.FailurePoint PRE_CONNECTING_BLE
public static final ConnectFailBluetoothGatt.FailurePoint POST_CONNECTING_BLE
public static final ConnectFailBluetoothGatt.FailurePoint SERVICE_DISCOVERY
public static ConnectFailBluetoothGatt.FailurePoint[] values()
for (ConnectFailBluetoothGatt.FailurePoint c : ConnectFailBluetoothGatt.FailurePoint.values()) System.out.println(c);
public static ConnectFailBluetoothGatt.FailurePoint 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