Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for BluetoothCodecStatus
.
Summary
Public constructors
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# BluetoothCodecStatus.Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/bluetooth/BluetoothCodecStatus.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.bluetooth.BluetoothCodecStatus.Builder](#) |\n\nBuilder for [BluetoothCodecStatus](/reference/kotlin/android/bluetooth/BluetoothCodecStatus).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BluetoothCodecStatus](/reference/kotlin/android/bluetooth/BluetoothCodecStatus) | [build](#build())`()` Build [BluetoothCodecStatus](/reference/kotlin/android/bluetooth/BluetoothCodecStatus). |\n| [BluetoothCodecStatus.Builder](#) | [setCodecConfig](#setCodecConfig(android.bluetooth.BluetoothCodecConfig))`(`codecConfig:` `[BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig)`)` Set Bluetooth codec config for this codec status. |\n| [BluetoothCodecStatus.Builder](#) | [setCodecsLocalCapabilities](#setCodecsLocalCapabilities(kotlin.collections.MutableList))`(`codecsLocalCapabilities:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\u003e`)` Set codec local capabilities list for this codec status. |\n| [BluetoothCodecStatus.Builder](#) | [setCodecsSelectableCapabilities](#setCodecsSelectableCapabilities(kotlin.collections.MutableList))`(`codecsSelectableCapabilities:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\u003e`)` Set codec selectable capabilities list for this codec status. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): BluetoothCodecStatus\n```\n\nBuild [BluetoothCodecStatus](/reference/kotlin/android/bluetooth/BluetoothCodecStatus).\n\n| Return ||\n|----------------------------------------------------------------------------------|-------------------------------------------------------------|\n| [BluetoothCodecStatus](/reference/kotlin/android/bluetooth/BluetoothCodecStatus) | new BluetoothCodecStatus built This value cannot be `null`. |\n\n### setCodecConfig\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setCodecConfig(codecConfig: BluetoothCodecConfig): BluetoothCodecStatus.Builder\n```\n\nSet Bluetooth codec config for this codec status.\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `codecConfig` | [BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig): of this codec status This value cannot be `null`. |\n\n| Return ||\n|-----------------------------------|--------------------------------------------------------|\n| [BluetoothCodecStatus.Builder](#) | the same Builder instance This value cannot be `null`. |\n\n### setCodecsLocalCapabilities\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setCodecsLocalCapabilities(codecsLocalCapabilities: MutableList\u003cBluetoothCodecConfig!\u003e): BluetoothCodecStatus.Builder\n```\n\nSet codec local capabilities list for this codec status.\n\n| Parameters ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `codecsLocalCapabilities` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\\\u003e: of this codec status This value cannot be `null`. |\n\n| Return ||\n|-----------------------------------|--------------------------------------------------------|\n| [BluetoothCodecStatus.Builder](#) | the same Builder instance This value cannot be `null`. |\n\n### setCodecsSelectableCapabilities\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setCodecsSelectableCapabilities(codecsSelectableCapabilities: MutableList\u003cBluetoothCodecConfig!\u003e): BluetoothCodecStatus.Builder\n```\n\nSet codec selectable capabilities list for this codec status.\n\n| Parameters ||\n|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `codecsSelectableCapabilities` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[BluetoothCodecConfig](/reference/kotlin/android/bluetooth/BluetoothCodecConfig)!\\\u003e: of this codec status This value cannot be `null`. |\n\n| Return ||\n|-----------------------------------|--------------------------------------------------------|\n| [BluetoothCodecStatus.Builder](#) | the same Builder instance This value cannot be `null`. |"]]