Android.Bluetooth.BluetoothManager.GetConnectionState Method
Get the current connection state of the profile to the remote device.

Syntax

[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;I)I", "")]
[return:Android.Runtime.GeneratedEnum]
public ProfileState GetConnectionState (BluetoothDevice device, [Android.Runtime.GeneratedEnum] ProfileType profile)

Parameters

device
Remote bluetooth device.
profile
GATT or GATT_SERVER

Returns

Documentation for this section has not yet been entered.

Remarks

Get the current connection state of the profile to the remote device.

This is not specific to any application configuration but represents the connection state of the local Bluetooth adapter for certain profile. This can be used by applications like status bar which would just like to know the state of Bluetooth.

Requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

[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