Share via


WifiAwareManager.RemovePairedDevice(String) Method

Definition

Remove the target paired device setup by the caller by DiscoverySession#initiatePairingRequest(PeerHandle, String, int, String) and DiscoverySession#acceptPairingRequest(int, PeerHandle, String, int, String)

[Android.Runtime.Register("removePairedDevice", "(Ljava/lang/String;)V", "GetRemovePairedDevice_Ljava_lang_String_Handler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")]
public virtual void RemovePairedDevice (string alias);
[<Android.Runtime.Register("removePairedDevice", "(Ljava/lang/String;)V", "GetRemovePairedDevice_Ljava_lang_String_Handler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")>]
abstract member RemovePairedDevice : string -> unit
override this.RemovePairedDevice : string -> unit

Parameters

alias
String

The alias set by the caller

Attributes

Remarks

Remove the target paired device setup by the caller by DiscoverySession#initiatePairingRequest(PeerHandle, String, int, String) and DiscoverySession#acceptPairingRequest(int, PeerHandle, String, int, String)

Java documentation for android.net.wifi.aware.WifiAwareManager.removePairedDevice(java.lang.String).

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