BluetoothHeadset.GetCodecType(BluetoothDevice) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該 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 。
- 屬性