public static interface IBreeze.ConnectionCallback
Modifier and Type | Method and Description |
---|---|
void |
onConnectionStateChange(IBreezeDevice device,
int state,
int status)
当设备状态发生变化时触发
|
void onConnectionStateChange(IBreezeDevice device, int state, int status)
device
- breeze设备 BluetoothProfile#STATE_CONNECTED
时才有意义state
- 连接状态,可以是下列值:
BluetoothProfile#STATE_CONNECTING
, BluetoothProfile#STATE_CONNECTED
BluetoothProfile#STATE_DISCONNECTED
, BluetoothProfile#STATE_DISCONNECTED
status
- 方法完成状态,如果成功为 BluetoothGatt#GATT_SUCCESS
,失败为 BluetoothGatt#GATT_FAILURE