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 AcceptDataPathRequest(PeerHandle, AwareDataPathRequest) or InitiateDataPathRequest(PeerHandle, AwareDataPathRequest)
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.