Android.Bluetooth.BluetoothGattCallback.OnConnectionStateChange Method
Callback indicating when GATT client has connected/disconnected to/from a remote GATT server.

Syntax

[Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothGatt_IIHandler")]
public virtual void OnConnectionStateChange (BluetoothGatt gatt, [Android.Runtime.GeneratedEnum] GattStatus status, [Android.Runtime.GeneratedEnum] ProfileState newState)

Parameters

gatt
GATT client
status
Status of the connect or disconnect operation. BluetoothGatt.GattSuccess if the operation succeeds.
newState
Returns the new connection state. Can be one of BluetoothProfile.STATE_DISCONNECTED or BluetoothProfile.STATE_CONNECTED

Remarks

Callback indicating when GATT client has connected/disconnected to/from a remote GATT server.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18