Sdílet prostřednictvím


BluetoothGattCallback.OnPhyRead Method

Definition

Callback triggered as result of 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

Parameters

gatt
BluetoothGatt

GATT client

txPhy
ScanSettingsPhy

the transmitter PHY in use. One of BluetoothDevice#PHY_LE_1M, BluetoothDevice#PHY_LE_2M, and BluetoothDevice#PHY_LE_CODED.

rxPhy
ScanSettingsPhy

the receiver PHY in use. One of BluetoothDevice#PHY_LE_1M, BluetoothDevice#PHY_LE_2M, and BluetoothDevice#PHY_LE_CODED.

status
GattStatus

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

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattCallback.onPhyRead(android.bluetooth.BluetoothGatt, 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