BluetoothGattCallback.OnReadRemoteRssi 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
报告远程设备连接的 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 函数时触发。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。