語言

BluetoothGattServerCallback.OnConnectionUpdated 方法

定義

回調顯示連線參數已更新。

[Android.Runtime.Register("onConnectionUpdated", "(Landroid/bluetooth/BluetoothDevice;IIII)V", "GetOnConnectionUpdated_Landroid_bluetooth_BluetoothDevice_IIIIHandler", ApiSince=37)]
public virtual void OnConnectionUpdated(Android.Bluetooth.BluetoothDevice device, int interval, int latency, int supervisionTimeout, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onConnectionUpdated", "(Landroid/bluetooth/BluetoothDevice;IIII)V", "GetOnConnectionUpdated_Landroid_bluetooth_BluetoothDevice_IIIIHandler", ApiSince=37)>]
abstract member OnConnectionUpdated : Android.Bluetooth.BluetoothDevice * int * int * int * Android.Bluetooth.GattStatus -> unit
override this.OnConnectionUpdated : Android.Bluetooth.BluetoothDevice * int * int * int * Android.Bluetooth.GattStatus -> unit

參數

device
BluetoothDevice

涉及的遠端裝置

interval
Int32

此連線所用的連線間隔為單位 1.25ms。 有效範圍為 6(7.5ms)至 3200(4000ms)。

latency
Int32

連線事件數量的工人延遲。 有效範圍為0至499

supervisionTimeout
Int32

此連線需監督逾時,單位為10毫秒。 有效範圍為10秒(0.1秒)至3200秒(32秒)

status
GattStatus

BluetoothGatt#GATT_SUCCESS 如果連線已成功更新

屬性

適用於