-
public interface BondingObserver
-
-
Method Summary
Modifier and Type Method Description abstract voidonBondingRequired(@NonNull() BluetoothDevice device)Called when an GATT_INSUFFICIENT_AUTHENTICATION error occurred and thedevice bond state is BOND_NONE. abstract voidonBonded(@NonNull() BluetoothDevice device)Called when the device has been successfully bonded. abstract voidonBondingFailed(@NonNull() BluetoothDevice device)Called when the bond state has changed from BOND_BONDING to BOND_NONE. -
-
Method Detail
-
onBondingRequired
abstract void onBondingRequired(@NonNull() BluetoothDevice device)
Called when an GATT_INSUFFICIENT_AUTHENTICATION error occurred and thedevice bond state is BOND_NONE.
- Parameters:
device- the device that requires bonding.
-
onBonded
abstract void onBonded(@NonNull() BluetoothDevice device)
Called when the device has been successfully bonded.
- Parameters:
device- the device that got bonded.
-
onBondingFailed
abstract void onBondingFailed(@NonNull() BluetoothDevice device)
Called when the bond state has changed from BOND_BONDING to BOND_NONE.
- Parameters:
device- the device that failed to bond.
-
-
-
-