Język

BluetoothLeAudioCodecConfig.Builder.SetCodecId(Int64) Method

Definition

Sets the codec ID.

[Android.Runtime.Register("setCodecId", "(J)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder SetCodecId(long codecId);
[<Android.Runtime.Register("setCodecId", "(J)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=37)>]
member this.SetCodecId : int64 -> Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder

Parameters

codecId
Int64

The 40-bit codec identifier.

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Sets the codec ID.

The codec identifier is 40 bits as defined by Bluetooth ASCS v1.0.1.

Currently, only the following Codec IDs are supported: LC3: 0x00_0000000006; Vendor Specific: 0xNN_NNNNNNNNFF

Android reference for android.bluetooth.BluetoothLeAudioCodecConfig.Builder.setCodecId.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to