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