DiscoverySessionCallback.OnSessionConfigFailed 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.
Called when a publish or subscribe discovery session cannot be created:
WifiAwareSession#publish(PublishConfig, DiscoverySessionCallback,
android.os.Handler)
or
WifiAwareSession#subscribe(SubscribeConfig, DiscoverySessionCallback,
android.os.Handler)
, or when a configuration update fails:
PublishDiscoverySession#updatePublish(PublishConfig)
or
SubscribeDiscoverySession#updateSubscribe(SubscribeConfig)
.
[Android.Runtime.Register("onSessionConfigFailed", "()V", "GetOnSessionConfigFailedHandler", ApiSince=26)]
public virtual void OnSessionConfigFailed ();
[<Android.Runtime.Register("onSessionConfigFailed", "()V", "GetOnSessionConfigFailedHandler", ApiSince=26)>]
abstract member OnSessionConfigFailed : unit -> unit
override this.OnSessionConfigFailed : unit -> unit
- Attributes
Remarks
Called when a publish or subscribe discovery session cannot be created: WifiAwareSession#publish(PublishConfig, DiscoverySessionCallback, android.os.Handler)
or WifiAwareSession#subscribe(SubscribeConfig, DiscoverySessionCallback, android.os.Handler)
, or when a configuration update fails: PublishDiscoverySession#updatePublish(PublishConfig)
or SubscribeDiscoverySession#updateSubscribe(SubscribeConfig)
.
For discovery session updates failure leaves the session running with its previous configuration - the discovery session is not terminated.
Java documentation for android.net.wifi.aware.DiscoverySessionCallback.onSessionConfigFailed()
.
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.