Android.Bluetooth.BluetoothAdapter.GetProfileProxy Method
Get the profile proxy object associated with the profile.

Syntax

[Android.Runtime.Register("getProfileProxy", "(Landroid/content/Context;Landroid/bluetooth/BluetoothProfile$ServiceListener;I)Z", "")]
public bool GetProfileProxy (Android.Content.Context context, IBluetoothProfileServiceListener listener, [Android.Runtime.GeneratedEnum] ProfileType profile)

Parameters

context
Context of the application
listener
The service Listener for connection callbacks.
profile
The Bluetooth profile; either BluetoothProfile.Health, BluetoothProfile.Headset or BluetoothProfile.A2dp.

Returns

Documentation for this section has not yet been entered.

Remarks

Get the profile proxy object associated with the profile.

Profile can be one of BluetoothProfile.Health, BluetoothProfile.Headset, BluetoothProfile.A2dp, BluetoothProfile.Gatt, or BluetoothProfile.GattServer. Clients must implement Android.Bluetooth.IBluetoothProfileServiceListener to get notified of the connection status and to get the proxy object.

[Android Documentation]

Requirements

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