Added in API level 33

Builder


class Builder
kotlin.Any
   ↳ android.bluetooth.BluetoothCodecStatus.Builder

Builder for BluetoothCodecStatus.

Summary

Public constructors

Public methods
BluetoothCodecStatus

Build BluetoothCodecStatus.

BluetoothCodecStatus.Builder

Set Bluetooth codec config for this codec status.

BluetoothCodecStatus.Builder

Set codec local capabilities list for this codec status.

BluetoothCodecStatus.Builder

Set codec selectable capabilities list for this codec status.

Public constructors

Builder

Added in API level 33
Builder()

Public methods

build

Added in API level 33
fun build(): BluetoothCodecStatus

Build BluetoothCodecStatus.

Return
BluetoothCodecStatus new BluetoothCodecStatus built This value cannot be null.

setCodecConfig

Added in API level 33
fun setCodecConfig(codecConfig: BluetoothCodecConfig): BluetoothCodecStatus.Builder

Set Bluetooth codec config for this codec status.

Parameters
codecConfig BluetoothCodecConfig: of this codec status This value cannot be null.
Return
BluetoothCodecStatus.Builder the same Builder instance This value cannot be null.

setCodecsLocalCapabilities

Added in API level 33
fun setCodecsLocalCapabilities(codecsLocalCapabilities: MutableList<BluetoothCodecConfig!>): BluetoothCodecStatus.Builder

Set codec local capabilities list for this codec status.

Parameters
codecsLocalCapabilities MutableList<BluetoothCodecConfig!>: of this codec status This value cannot be null.
Return
BluetoothCodecStatus.Builder the same Builder instance This value cannot be null.

setCodecsSelectableCapabilities

Added in API level 33
fun setCodecsSelectableCapabilities(codecsSelectableCapabilities: MutableList<BluetoothCodecConfig!>): BluetoothCodecStatus.Builder

Set codec selectable capabilities list for this codec status.

Parameters
codecsSelectableCapabilities MutableList<BluetoothCodecConfig!>: of this codec status This value cannot be null.
Return
BluetoothCodecStatus.Builder the same Builder instance This value cannot be null.