语言

BluetoothGattServerCallback.OnPhyUpdate 方法

定义

由于或远程设备更改 PHY 而 BluetoothGattServer#setPreferredPhy触发的回调。

[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

参数

device
BluetoothDevice

远程设备。

txPhy
ScanSettingsPhy

正在使用的发射器 PHY。

rxPhy
ScanSettingsPhy

正在使用的接收器 PHY。

status
GattStatus

PHY 更新操作的状态。 BluetoothGatt#GATT_SUCCESS 如果操作成功,则为

特性

注解

由于或远程设备更改 PHY 而 BluetoothGattServer#setPreferredPhy触发的回调。

Java文档android.bluetooth.BluetoothGattServerCallback.onPhyUpdate(android.bluetooth.BluetoothDevice, int, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于