語言

BluetoothGattServerCallback.OnPhyUpdate 方法

定義

回調因 BluetoothGattServer#setPreferredPhy或因遠端裝置變更 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

參數

device
BluetoothDevice

遠端裝置

txPhy
ScanSettingsPhy

發射機 PHY 正在使用。 其中 BluetoothDevice#PHY_LE_1M一個、 BluetoothDevice#PHY_LE_2M、 和 BluetoothDevice#PHY_LE_CODED

rxPhy
ScanSettingsPhy

接收機的 PHY 正在使用。 其中 BluetoothDevice#PHY_LE_1M一個、 BluetoothDevice#PHY_LE_2M、 和 BluetoothDevice#PHY_LE_CODED

status
GattStatus

PHY 更新操作的狀態。 BluetoothGatt#GATT_SUCCESS 如果手術成功。

屬性

備註

回調因 BluetoothGattServer#setPreferredPhy或因遠端裝置變更 PHY 而觸發。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於