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

peerHandle
PeerHandle

The peer's handle is used in PublishDiscoverySession#acceptDataPathRequest(PeerHandle, AwareDataPathRequest) or SubscribeDiscoverySession#initiateDataPathRequest(PeerHandle, AwareDataPathRequest)

Returns

true if the data path is released successfully, false otherwise.

Attributes

Remarks

Release the Aware data path to the specified peer. The datapath will be disconnected if no other applications are requesting it. DiscoverySessionCallback.onDataPathDisconnected(PeerHandle) will be called when the datapath is disconnected.

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