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 式被觸發的。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。