Share via


NsdManager.IServiceInfoCallback.OnServiceLost Method

Definition

Reports when the service that this callback listens to becomes unavailable.

[Android.Runtime.Register("onServiceLost", "()V", "GetOnServiceLostHandler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnServiceLost ();
[<Android.Runtime.Register("onServiceLost", "()V", "GetOnServiceLostHandler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnServiceLost : unit -> unit
Attributes

Remarks

Reports when the service that this callback listens to becomes unavailable.

Called on the executor passed to NsdManager#registerServiceInfoCallback. The service may become available again, in which case #onServiceUpdated will be called.

Java documentation for android.net.nsd.NsdManager.ServiceInfoCallback.onServiceLost().

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