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 Android 13 and earlier to choose which proxy type to close. Android 14 and later ignore this value and close the supplied proxy directly.

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