DiscoverySession.ReleaseDataPath(PeerHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.