public static enum ConnectFailBluetoothGatt.FailureType extends java.lang.Enum<ConnectFailBluetoothGatt.FailureType>
Enum Constant and Description |
---|
DISCONNECT_GATT_ERROR
This basically simulates the dreaded 133 gatt error.
|
SERVICE_DISCOVERY_FAILED
This will essentially look like
DISCONNECT_GATT_ERROR , just that it's used only when service discovery fails. |
TIMEOUT
This failure simulates a simple time out.
|
Modifier and Type | Method and Description |
---|---|
static ConnectFailBluetoothGatt.FailureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectFailBluetoothGatt.FailureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectFailBluetoothGatt.FailureType DISCONNECT_GATT_ERROR
public static final ConnectFailBluetoothGatt.FailureType TIMEOUT
public static final ConnectFailBluetoothGatt.FailureType SERVICE_DISCOVERY_FAILED
DISCONNECT_GATT_ERROR
, just that it's used only when service discovery fails.public static ConnectFailBluetoothGatt.FailureType[] values()
for (ConnectFailBluetoothGatt.FailureType c : ConnectFailBluetoothGatt.FailureType.values()) System.out.println(c);
public static ConnectFailBluetoothGatt.FailureType 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