言語

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

リモート Bluetooth デバイス。 null にすることはできません。

返品

指定された HFP 接続デバイスのコーデックの種類。 Bluetoothがオフ、プロファイルが接続されていない、デバイスが接続されていない、コーデック ネゴシエーションが完了していない、またはエラーが発生した場合に #CODEC_TYPE_UNSUPPORTED を返します。

属性

適用対象