Langue

BluetoothGattServerCallback.OnPhyUpdate Méthode

Définition

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

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

Paramètres

device
BluetoothDevice

Appareil distant

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 BluetoothGattServer#setPreferredPhydistant ou de modification du PHY.

Java documentation pour android.bluetooth.BluetoothGattServerCallback.onPhyUpdate(android.bluetooth.BluetoothDevice, 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 à