語言

BluetoothHeadset.GetCodecType(BluetoothDevice) 方法

定義

取得該 HFP 連接裝置的編解碼器類型。

[Android.Runtime.Register("getCodecType", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothHeadsetCodecType GetCodecType(Android.Bluetooth.BluetoothDevice device);
[<Android.Runtime.Register("getCodecType", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetCodecType : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.BluetoothHeadsetCodecType

參數

device
BluetoothDevice

遠端藍牙裝置。 不得為 Null。

傳回

該HFP連接裝置的編解碼器類型。 如果藍牙關閉、設定檔未連接、裝置未連接、編解碼器協商未完成或發生錯誤,就會回傳 #CODEC_TYPE_UNSUPPORTED

屬性

適用於