public enum ConnectionState
- Object
- Enum<ConnectionState>
- ConnectionState
ImplementsComparable<ConnectionState>
Lifecycle states of a
BlePeripheral connection.Enum constants
DISCONNECTED | No connection. |
CONNECTING | A BlePeripheral.connect() attempt is in progress. |
CONNECTED | The link is established; GATT operations are available. |
DISCONNECTING | A BlePeripheral.disconnect() request is in progress. |
Methods
public static ConnectionState[] values() | |
public static ConnectionState valueOf(String name) |
Inherited methods
Enum constant details
DISCONNECTED
DISCONNECTEDNo connection. GATT operations fail with
BluetoothError.NOT_CONNECTED.CONNECTING
CONNECTINGA
BlePeripheral.connect() attempt is in progress.CONNECTED
CONNECTEDThe link is established; GATT operations are available.
DISCONNECTING
DISCONNECTINGA
BlePeripheral.disconnect() request is in progress.Method details
values
public static ConnectionState[] values()valueOf
public static ConnectionState valueOf(String name)