Language

NsdManager.StopServiceResolution(NsdManager+IResolveListener) Method

Definition

Stop service resolution initiated with resolveService(NsdServiceInfo, ResolveListener).

[Android.Runtime.Register("stopServiceResolution", "(Landroid/net/nsd/NsdManager$ResolveListener;)V", "", ApiSince=34)]
public void StopServiceResolution(Android.Net.Nsd.NsdManager.IResolveListener listener);
[<Android.Runtime.Register("stopServiceResolution", "(Landroid/net/nsd/NsdManager$ResolveListener;)V", "", ApiSince=34)>]
member this.StopServiceResolution : Android.Net.Nsd.NsdManager.IResolveListener -> unit

Parameters

listener
NsdManager.IResolveListener

This should be a listener object that was passed to resolveService(NsdServiceInfo, ResolveListener). It identifies the resolution that should be stopped and notifies of a successful or unsuccessful stop. This value cannot be null.

Attributes

Remarks

Stop service resolution initiated with resolveService(NsdServiceInfo, ResolveListener). A successful stop is notified with a call to ResolveListener.onResolutionStopped.

Upon failure to stop service resolution for example if resolution is done or the requester stops resolution repeatedly, the application is notified ResolveListener.onStopResolutionFailed with FAILURE_OPERATION_NOT_RUNNING

If the listener is not already registered, for apps running on devices with T SDK extension < 22, this will throw with IllegalArgumentException.

Android reference for android.net.nsd.NsdManager.stopServiceResolution.

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