Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# BondStatus

*** ** * ** ***

```
class BondStatus
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.bluetooth.BondStatus](https://developer.android.com/reference/kotlin/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 ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#BondStatus(kotlin.Int,%20kotlin.Int)(pairingAlgorithm: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, pairingVariant: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Creates a new `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#` object. |

| Public methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#getPairingAlgorithm()()` <br /> |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#getPairingVariant()()` <br /> |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#toString()()` Returns a string representation of the object. |

## Public constructors

### BondStatus

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
BondStatus(
    pairingAlgorithm: Int, 
    pairingVariant: Int)
```

Creates a new `https://developer.android.com/reference/kotlin/android/bluetooth/BondStatus#` object.

| Parameters ||
|---|---|
| `pairingAlgorithm` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the pairing algorithm used to create the bond with the device. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_LE_LEGACY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_BREDR_LEGACY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_BREDR_SSP:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_SC:kotlin.Int` |
| `pairingVariant` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the pairing variant used to create the bond with the device. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_VARIANT_PIN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_VARIANT_PASSKEY_CONFIRMATION:kotlin.Int` |

## Public methods

### getPairingAlgorithm

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getPairingAlgorithm(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the pairing algorithm used to create the bond with the device. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_LE_LEGACY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_BREDR_LEGACY:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_BREDR_SSP:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_ALGORITHM_SC:kotlin.Int` |

### getPairingVariant

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getPairingVariant(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the pairing variant used to create the bond with the device. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_VARIANT_PIN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice#PAIRING_VARIANT_PASSKEY_CONFIRMATION:kotlin.Int` |

### toString

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun toString(): String
```

Returns a string representation of the object.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | a string representation of the object. |