BluetoothConnectivityStatus

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.

connectedProfiles

The list of the connected Bluetooth profiles provided by the remote Bluetooth device.

Constructors

Link copied to clipboard
constructor(connectionState: BluetoothConnectivityStatus.BluetoothConnectionState, bondState: BluetoothConnectivityStatus.BluetoothBondState, lastBondStateChangeReason: BluetoothConnectivityStatus.BondStateChangeReason? = null, connectedProfiles: Set<BluetoothDeviceProfile> = emptySet())

Types

Link 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.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)