public interface BondingObserver
| Modifier and Type | Method and Description |
|---|---|
void |
onBonded(android.bluetooth.BluetoothDevice device)
Called when the device has been successfully bonded.
|
void |
onBondingFailed(android.bluetooth.BluetoothDevice device)
Called when the bond state has changed from
BluetoothDevice.BOND_BONDING to
BluetoothDevice.BOND_NONE. |
void |
onBondingRequired(android.bluetooth.BluetoothDevice device)
Called when an
BluetoothGatt.GATT_INSUFFICIENT_AUTHENTICATION error occurred and the
device bond state is BluetoothDevice.BOND_NONE. |
void onBondingRequired(@NonNull
android.bluetooth.BluetoothDevice device)
BluetoothGatt.GATT_INSUFFICIENT_AUTHENTICATION error occurred and the
device bond state is BluetoothDevice.BOND_NONE.device - the device that requires bonding.void onBonded(@NonNull
android.bluetooth.BluetoothDevice device)
device - the device that got bonded.void onBondingFailed(@NonNull
android.bluetooth.BluetoothDevice device)
BluetoothDevice.BOND_BONDING to
BluetoothDevice.BOND_NONE.device - the device that failed to bond.