Language

DiscoverySession.ReleaseDataPath(PeerHandle) Method

Definition

Release the Aware data path to the specified peer.

[Android.Runtime.Register("releaseDataPath", "(Landroid/net/wifi/aware/PeerHandle;)Z", "GetReleaseDataPath_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)]
public virtual bool ReleaseDataPath(Android.Net.Wifi.Aware.PeerHandle peerHandle);
[<Android.Runtime.Register("releaseDataPath", "(Landroid/net/wifi/aware/PeerHandle;)Z", "GetReleaseDataPath_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)>]
abstract member ReleaseDataPath : Android.Net.Wifi.Aware.PeerHandle -> bool
override this.ReleaseDataPath : Android.Net.Wifi.Aware.PeerHandle -> bool

Parameters

Returns

true if the release request was sent to the Wi-Fi Aware service; false if the session has terminated or the Wi-Fi Aware manager is unavailable. A true result does not confirm that the data path has disconnected.

Attributes

Remarks

The service attempts to end the data paths for this peer. It can call OnDataPathDisconnected(PeerHandle) before the Wi-Fi hardware confirms disconnection.

Android reference for android.net.wifi.aware.DiscoverySession.releaseDataPath.

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