WifiAwareSession.Close 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.
Destroy the Wi-Fi Aware service session and, if no other applications are attached to Aware, also disable Aware.
[Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=26)]
public virtual void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=26)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit
Implements
- Attributes
Remarks
Destroy the Wi-Fi Aware service session and, if no other applications are attached to Aware, also disable Aware. This method destroys all outstanding operations - i.e. all publish and subscribes are terminated, and any outstanding data-links are shut-down. However, it is good practice to destroy these discovery sessions and connections explicitly before a session-wide destroy.
An application may re-attach after a destroy using WifiAwareManager#attach(AttachCallback, Handler)
.
Java documentation for android.net.wifi.aware.WifiAwareSession.close()
.
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.