from Int
Converts an Android Bluetooth bond state integer to a BondState enum value.
This method provides a safe conversion from the integer constants defined in BluetoothDevice to the type-safe BondState enum.
Return
The corresponding BondState enum value. Returns BOND_NONE for any unrecognized state values as a safe default.
Parameters
state
The integer bond state from BluetoothDevice.getBondState. Expected values are: - BluetoothDevice.BOND_NONE (10) - BluetoothDevice.BOND_BONDING (11) - BluetoothDevice.BOND_BONDED (12)