Langue

BluetoothGattCallback.OnPhyUpdate Méthode

Définition

Rappel déclenché à la suite d’un changement d’appareil BluetoothGatt#setPreferredPhydistant ou de modification du PHY.

[Android.Runtime.Register("onPhyUpdate", "(Landroid/bluetooth/BluetoothGatt;III)V", "GetOnPhyUpdate_Landroid_bluetooth_BluetoothGatt_IIIHandler", ApiSince=26)]
public virtual void OnPhyUpdate(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.LE.ScanSettingsPhy txPhy, Android.Bluetooth.LE.ScanSettingsPhy rxPhy, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onPhyUpdate", "(Landroid/bluetooth/BluetoothGatt;III)V", "GetOnPhyUpdate_Landroid_bluetooth_BluetoothGatt_IIIHandler", ApiSince=26)>]
abstract member OnPhyUpdate : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.GattStatus -> unit
override this.OnPhyUpdate : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.GattStatus -> unit

Paramètres

gatt
BluetoothGatt

Client GATT

txPhy
ScanSettingsPhy

l’émetteur PHY en cours d’utilisation. Un des BluetoothDevice#PHY_LE_1M, BluetoothDevice#PHY_LE_2Met BluetoothDevice#PHY_LE_CODED.

rxPhy
ScanSettingsPhy

le récepteur PHY en cours d’utilisation. Un des BluetoothDevice#PHY_LE_1M, BluetoothDevice#PHY_LE_2Met BluetoothDevice#PHY_LE_CODED.

status
GattStatus

État de l’opération de mise à jour PHY. BluetoothGatt#GATT_SUCCESS si l’opération réussit.

Attributs

Remarques

Rappel déclenché à la suite d’un changement d’appareil BluetoothGatt#setPreferredPhydistant ou de modification du PHY.

Java documentation pour android.bluetooth.BluetoothGattCallback.onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à