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
リモート Bluetooth デバイス。 null にすることはできません。
返品
指定された HFP 接続デバイスのコーデックの種類。 Bluetoothがオフ、プロファイルが接続されていない、デバイスが接続されていない、コーデック ネゴシエーションが完了していない、またはエラーが発生した場合に #CODEC_TYPE_UNSUPPORTED を返します。
- 属性