Added in API level 37

BondStatus


class BondStatus
kotlin.Any
   ↳ android.bluetooth.BondStatus

Represents the bond status of a Bluetooth device.

This class is used to hold the bond status details like pairing algorithm and variant of a Bluetooth device.

Summary

Public constructors
BondStatus(pairingAlgorithm: Int, pairingVariant: Int)

Creates a new BondStatus object.

Public methods
Int

Int

String

Returns a string representation of the object.

Public constructors

BondStatus

Added in API level 37
BondStatus(
    pairingAlgorithm: Int,
    pairingVariant: Int)

Creates a new BondStatus object.

Parameters
pairingAlgorithm Int: the pairing algorithm used to create the bond with the device.
Value is one of the following:
pairingVariant Int: the pairing variant used to create the bond with the device.
Value is one of the following:

Public methods

getPairingVariant

Added in API level 37
fun getPairingVariant(): Int
Return
Int the pairing variant used to create the bond with the device.
Value is one of the following:

toString

Added in API level 37
fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.