Android.Bluetooth.BluetoothAdapter.GetProfileConnectionState Method
Get the current connection state of a profile.

Syntax

[Android.Runtime.Register("getProfileConnectionState", "(I)I", "")]
[return:Android.Runtime.GeneratedEnum]
public ProfileState GetProfileConnectionState ([Android.Runtime.GeneratedEnum] ProfileType profile)

Parameters

profile
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Get the current connection state of a profile. This function can be used to check whether the local Bluetooth adapter is connected to any remote device for a specific profile. Profile can be one of BluetoothProfile.Health, BluetoothProfile.Headset, BluetoothProfile.A2dp.

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

Return value can be one of BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTING

[Android Documentation]

Requirements

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