Langue

BluetoothGattServerCallback.OnPhyUpdate Method

Definition

Callback triggered as result of BluetoothGattServer#setPreferredPhy, or as a result of remote device changing the 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

Parameters

device
BluetoothDevice

The remote device.

txPhy
ScanSettingsPhy

the transmitter PHY in use.

rxPhy
ScanSettingsPhy

the receiver PHY in use.

status
GattStatus

Status of the PHY update operation. BluetoothGatt#GATT_SUCCESS if the operation succeeds.

Attributes

Remarks

Callback triggered as result of BluetoothGattServer#setPreferredPhy, or as a result of remote device changing the PHY.

Java documentation for android.bluetooth.BluetoothGattServerCallback.onPhyUpdate(android.bluetooth.BluetoothDevice, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to