BluetoothConnectivityStatus

data class BluetoothConnectivityStatus(    val connectionState: BluetoothConnectivityStatus.BluetoothConnectionState,     val bondState: BluetoothConnectivityStatus.BluetoothBondState,     val lastBondStateChangeReason: BluetoothConnectivityStatus.BondStateChangeReason? = null) : Parcelable

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)

Types

Link copied to clipboard
enum BluetoothBondState : Enum<BluetoothConnectivityStatus.BluetoothBondState> , Parcelable
Link copied to clipboard
Link copied to clipboard
enum BondStateChangeReason : Enum<BluetoothConnectivityStatus.BondStateChangeReason> , Parcelable

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
Link copied to clipboard
Link copied to clipboard

Inherited functions

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