Share via


DiscoverySessionCallback.OnSessionTerminated Method

Definition

Called when a discovery session (publish or subscribe) terminates.

[Android.Runtime.Register("onSessionTerminated", "()V", "GetOnSessionTerminatedHandler", ApiSince=26)]
public virtual void OnSessionTerminated ();
[<Android.Runtime.Register("onSessionTerminated", "()V", "GetOnSessionTerminatedHandler", ApiSince=26)>]
abstract member OnSessionTerminated : unit -> unit
override this.OnSessionTerminated : unit -> unit
Attributes

Remarks

Called when a discovery session (publish or subscribe) terminates. Termination may be due to user-request (either directly through DiscoverySession#close() or application-specified expiration, e.g. PublishConfig.Builder#setTtlSec(int) or SubscribeConfig.Builder#setTtlSec(int)).

Java documentation for android.net.wifi.aware.DiscoverySessionCallback.onSessionTerminated().

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