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

# Builder

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/bluetooth/BluetoothCodecStatus.Builder "View this page in Java")

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.bluetooth.BluetoothCodecStatus.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#) |

Builder for `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#Builder()()` <br /> |

| Public methods ||
|---|---|
| [BluetoothCodecStatus](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus) | `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#build()()` Build `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus`. |
| [BluetoothCodecStatus.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#) | `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#setCodecConfig(android.bluetooth.BluetoothCodecConfig)(codecConfig: https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig)` Set Bluetooth codec config for this codec status. |
| [BluetoothCodecStatus.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#) | `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#setCodecsLocalCapabilities(kotlin.collections.MutableList)(codecsLocalCapabilities: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig!>)` Set codec local capabilities list for this codec status. |
| [BluetoothCodecStatus.Builder](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#) | `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#setCodecsSelectableCapabilities(kotlin.collections.MutableList)(codecsSelectableCapabilities: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig!>)` Set codec selectable capabilities list for this codec status. |

## Public constructors

### Builder

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

```
Builder()
```

## Public methods

### build

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

```
fun build(): BluetoothCodecStatus
```

Build `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus`.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus` | new BluetoothCodecStatus built. This value cannot be `null`. |

### setCodecConfig

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

```
fun setCodecConfig(codecConfig: BluetoothCodecConfig): BluetoothCodecStatus.Builder
```

Set Bluetooth codec config for this codec status.

| Parameters ||
|---|---|
| `codecConfig` | [BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig): of this codec status. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#` | the same Builder instance. This value cannot be `null`. |

### setCodecsLocalCapabilities

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

```
fun setCodecsLocalCapabilities(codecsLocalCapabilities: MutableList<BluetoothCodecConfig!>): BluetoothCodecStatus.Builder
```

Set codec local capabilities list for this codec status.

| Parameters ||
|---|---|
| `codecsLocalCapabilities` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\>: of this codec status. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#` | the same Builder instance. This value cannot be `null`. |

### setCodecsSelectableCapabilities

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

```
fun setCodecsSelectableCapabilities(codecsSelectableCapabilities: MutableList<BluetoothCodecConfig!>): BluetoothCodecStatus.Builder
```

Set codec selectable capabilities list for this codec status.

| Parameters ||
|---|---|
| `codecsSelectableCapabilities` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\>: of this codec status. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus.Builder#` | the same Builder instance. This value cannot be `null`. |