BluetoothPairingDetails

data class BluetoothPairingDetails(val pairingVariant: BluetoothPairingDetails.PairingVariant, val passkey: String?) : Parcelable

Represents Bluetooth pairing information and holds the current Bluetooth device pairing details. It includes the pairing variant and the passkey.

Parameters

pairingVariant

The pairing variant which is provided when the pairing request is received.

passkey

The code to be used when accepting the pairing request.

Constructors

Link copied to clipboard
fun BluetoothPairingDetails(pairingVariant: BluetoothPairingDetails.PairingVariant, passkey: String?)

Types

Link copied to clipboard
enum PairingVariant : Enum<BluetoothPairingDetails.PairingVariant> , Parcelable

Represents the pairing variant which is used when accepting a pairing request.

Properties

Link copied to clipboard
Link copied to clipboard
val passkey: String?

Functions

Link copied to clipboard
open override fun toString(): String

passkey is masked when the BluetoothPairingDetails is printed.

Inherited functions

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