Language

BluetoothAdapter.CloseProfileProxy(ProfileType, IBluetoothProfile) Method

Definition

Close the connection of the profile proxy to the Service.

[Android.Runtime.Register("closeProfileProxy", "(ILandroid/bluetooth/BluetoothProfile;)V", "")]
public void CloseProfileProxy(Android.Bluetooth.ProfileType unusedProfile, Android.Bluetooth.IBluetoothProfile? proxy);
[<Android.Runtime.Register("closeProfileProxy", "(ILandroid/bluetooth/BluetoothProfile;)V", "")>]
member this.CloseProfileProxy : Android.Bluetooth.ProfileType * Android.Bluetooth.IBluetoothProfile -> unit

Parameters

unusedProfile
ProfileType

The profile identifier used by earlier implementations to choose the close operation. Android 14 and later close the supplied proxy directly; Bluetooth Mainline updates may change this behavior on Android 13.

proxy
IBluetoothProfile

Profile proxy object

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.closeProfileProxy(int, android.bluetooth.BluetoothProfile).

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