Language

NsdManager.StopServiceResolution(NsdManager+IResolveListener) Method

Definition

Stop service resolution initiated with ResolveService.

[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

The listener passed to ResolveService. It identifies the resolution that should be stopped and notifies of a successful or unsuccessful stop. This value cannot be null.

Attributes

Remarks

A successful stop is reported through OnResolutionStopped(NsdServiceInfo). If a stop request reaches the service but resolution is no longer running, the listener can receive OnStopResolutionFailed(NsdServiceInfo, NsdFailure) with OperationNotRunning.

If the listener is no longer registered, the call may return without a callback. On devices with T SDK extension < 22, it throws IllegalArgumentException instead.

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