BluetoothConnectivityStatus
data class BluetoothConnectivityStatus( val connectionState: BluetoothConnectivityStatus.BluetoothConnectionState, val bondState: BluetoothConnectivityStatus.BluetoothBondState, val lastBondStateChangeReason: BluetoothConnectivityStatus.BondStateChangeReason? = null) : Parcelable
Content copied to clipboard
Represents a BluetoothConnectivityStatus which holds connection status information of a remote Bluetooth device.
Parameters
connectionState
The connection state of a remote Bluetooth device.
bondState
The bond state of a remote Bluetooth device.
lastBondStateChangeReason
Holds the reason why the last bond state was changed. Defaults to null
when not provided. When null
, the reason is unknown.
Constructors
Link copied to clipboard
fun BluetoothConnectivityStatus( connectionState: BluetoothConnectivityStatus.BluetoothConnectionState, bondState: BluetoothConnectivityStatus.BluetoothBondState, lastBondStateChangeReason: BluetoothConnectivityStatus.BondStateChangeReason? = null)
Content copied to clipboard
Types
Link copied to clipboard
enum BluetoothBondState : Enum<BluetoothConnectivityStatus.BluetoothBondState> , Parcelable
Content copied to clipboard
Link copied to clipboard
enum BluetoothConnectionState : Enum<BluetoothConnectivityStatus.BluetoothConnectionState> , Parcelable
Content copied to clipboard
Link copied to clipboard
enum BondStateChangeReason : Enum<BluetoothConnectivityStatus.BondStateChangeReason> , Parcelable
Content copied to clipboard
BondStateChangeReason should be used by the client to check if a pairing request succeeded, and resulted into a bond with the remote Bluetooth device. When the bond was created successfully, it is indicated by providing BOND_SUCCESS, otherwise the reason why the bond was not created will be provided. UNBOND_REASON_REMOVED is only used when the bond between the remote Bluetooth device has been removed.
Properties
Link copied to clipboard
val connectionState: BluetoothConnectivityStatus.BluetoothConnectionState
Content copied to clipboard
Link copied to clipboard
val lastBondStateChangeReason: BluetoothConnectivityStatus.BondStateChangeReason? = null
Content copied to clipboard