語言

BluetoothGattServerCallback.OnPhyRead 方法

定義

回撥觸發 BluetoothGattServer#readPhy

[Android.Runtime.Register("onPhyRead", "(Landroid/bluetooth/BluetoothDevice;III)V", "GetOnPhyRead_Landroid_bluetooth_BluetoothDevice_IIIHandler", ApiSince=26)]
public virtual void OnPhyRead(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.LE.ScanSettingsPhy txPhy, Android.Bluetooth.LE.ScanSettingsPhy rxPhy, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onPhyRead", "(Landroid/bluetooth/BluetoothDevice;III)V", "GetOnPhyRead_Landroid_bluetooth_BluetoothDevice_IIIHandler", ApiSince=26)>]
abstract member OnPhyRead : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.GattStatus -> unit
override this.OnPhyRead : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.GattStatus -> unit

參數

device
BluetoothDevice

請求讀取 PHY 的遠端裝置

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#readPhy

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

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

適用於