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
傳回
同一個建造者實例。 這個值不可能為零值。
- 屬性
備註
此方法在 API 等級 35 中被棄用。 改用 setExtendedCodecType(BluetoothCodecType)
Android 參考資料。android.bluetooth.BluetoothCodecConfig.Builder.setCodecType
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。