BluetoothGattServer.SetPreferredPhy メソッド

定義

このアプリの優先接続 PHY を設定します。

[Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void SetPreferredPhy(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.BluetoothPhy txPhy, Android.Bluetooth.BluetoothPhy rxPhy, Android.Bluetooth.BluetoothPhyOption phyOptions);
[<Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetPreferredPhy : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhyOption -> unit

パラメーター

device
BluetoothDevice

この応答を送信するリモート デバイス

txPhy
BluetoothPhy

推奨される送信機 PHY。 BluetoothDevice#PHY_LE_1M_MASKBluetoothDevice#PHY_LE_2M_MASKBluetoothDevice#PHY_LE_CODED_MASKのいずれかのビットごとの OR。

rxPhy
BluetoothPhy

優先レシーバー PHY。 BluetoothDevice#PHY_LE_1M_MASKBluetoothDevice#PHY_LE_2M_MASKBluetoothDevice#PHY_LE_CODED_MASKのいずれかのビットごとの OR。

phyOptions
BluetoothPhyOption

ル コード化 PHY で送信するときに使用する推奨コーディング。 BluetoothDevice#PHY_OPTION_NO_PREFERREDBluetoothDevice#PHY_OPTION_S2、またはBluetoothDevice#PHY_OPTION_S8

属性

注釈

このアプリの優先接続 PHY を設定します。 これは単なる推奨事項であることに注意してください。PHY の変更が行われるかどうかは、他のアプリケーションの基本設定、ローカルおよびリモート コントローラーの機能によって異なります。 コントローラーは、これらの設定をオーバーライドできます。

BluetoothGattServerCallback#onPhyUpdate は、PHY の変更が発生しない場合でも、この呼び出しの結果としてトリガーされます。 リモート デバイスが PHY を更新したときにもトリガーされます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象