共用方式為


BluetoothGattCallback.OnReadRemoteRssi Method

Definition

Callback reporting the RSSI for a remote device connection.

[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

Parameters

gatt
BluetoothGatt

GATT client invoked BluetoothGatt#readRemoteRssi

rssi
Int32

The RSSI value for the remote device

status
GattStatus

BluetoothGatt#GATT_SUCCESS if the RSSI was read successfully

Attributes

Remarks

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