語言

BluetoothGattCallback.OnPhyRead 方法

定義

回撥觸發 BluetoothGatt#readPhy

[Android.Runtime.Register("onPhyRead", "(Landroid/bluetooth/BluetoothGatt;III)V", "GetOnPhyRead_Landroid_bluetooth_BluetoothGatt_IIIHandler", ApiSince=26)]
public virtual void OnPhyRead(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.LE.ScanSettingsPhy txPhy, Android.Bluetooth.LE.ScanSettingsPhy rxPhy, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onPhyRead", "(Landroid/bluetooth/BluetoothGatt;III)V", "GetOnPhyRead_Landroid_bluetooth_BluetoothGatt_IIIHandler", ApiSince=26)>]
abstract member OnPhyRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.GattStatus -> unit
override this.OnPhyRead : 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#readPhy

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

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

適用於