語言

BluetoothGattCallback.OnPhyUpdate 方法

定義

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

參數

gatt
BluetoothGatt

GATT 用戶端

txPhy
ScanSettingsPhy

發射機 PHY 正在使用。

rxPhy
ScanSettingsPhy

接收機的 PHY 正在使用。

status
GattStatus

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

屬性

備註

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

Java 文件 android.bluetooth.BluetoothGattCallback.onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int)。

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

適用於