语言

BluetoothGattCallback.OnReadRemoteRssi 方法

定义

报告远程设备连接的 RSSI 的回调。

[Android.Runtime.Register("onReadRemoteRssi", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnReadRemoteRssi_Landroid_bluetooth_BluetoothGatt_IIHandler")]
public virtual void OnReadRemoteRssi(Android.Bluetooth.BluetoothGatt? gatt, int rssi, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onReadRemoteRssi", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnReadRemoteRssi_Landroid_bluetooth_BluetoothGatt_IIHandler")>]
abstract member OnReadRemoteRssi : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit
override this.OnReadRemoteRssi : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit

参数

gatt
BluetoothGatt

调用 GATT 客户端 BluetoothGatt#readRemoteRssi

rssi
Int32

远程设备的 RSSI 值

status
GattStatus

BluetoothGatt#GATT_SUCCESS 如果 RSSI 已成功读取,则为

特性

注解

报告远程设备连接的 RSSI 的回调。

此回调在响应 BluetoothGatt#readRemoteRssi 函数时触发。

Java文档android.bluetooth.BluetoothGattCallback.onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于