Language

BluetoothGattServerCallback.OnConnectionUpdated Method

Definition

Callback indicating the connection parameters were updated.

[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

Parameters

device
BluetoothDevice

The remote device involved

interval
Int32

Connection interval used on this connection, 1.25ms unit. Valid range is from 6 (7.5ms) to 3200 (4000ms).

latency
Int32

Worker latency for the connection in number of connection events. Valid range is from 0 to 499

supervisionTimeout
Int32

Supervision timeout for this connection, in 10ms unit. Valid range is from 10 (0.1s) to 3200 (32s)

status
GattStatus

BluetoothGatt#GATT_SUCCESS if the connection has been updated successfully

Attributes

Remarks

Callback indicating the connection parameters were updated.

Android reference for android.bluetooth.BluetoothGattServerCallback.onConnectionUpdated.

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