BluetoothLeAudioCodecConfig.Builder.SetCodecType(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为蓝牙 LE 音频编解码器配置设置编解码器类型。
[Android.Runtime.Register("setCodecType", "(I)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=33)]
public Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder SetCodecType(int codecType);
[<Android.Runtime.Register("setCodecType", "(I)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=33)>]
member this.SetCodecType : int -> Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder
参数
- codecType
- Int32
的此编解码器。 值为下列值之一:BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_LC3;BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_OPUS;BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_OPUS_HI_RES;BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_VENDOR_SPECIFIC;BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_INVALID
返回
同一个 Builder 实例。 此值不能为 null。
- 特性
注解
为蓝牙 LE 音频编解码器配置设置编解码器类型。
Android 参考。android.bluetooth.BluetoothLeAudioCodecConfig.Builder.setCodecType
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。