NsdManager.StopServiceDiscovery(NsdManager+IDiscoveryListener) Method

Definition

[Android.Runtime.Register("stopServiceDiscovery", "(Landroid/net/nsd/NsdManager$DiscoveryListener;)V", "")]
public void StopServiceDiscovery (Android.Net.Nsd.NsdManager.IDiscoveryListener? listener);
[<Android.Runtime.Register("stopServiceDiscovery", "(Landroid/net/nsd/NsdManager$DiscoveryListener;)V", "")>]
member this.StopServiceDiscovery : Android.Net.Nsd.NsdManager.IDiscoveryListener -> unit

Parameters

listener
NsdManager.IDiscoveryListener

This should be the listener object that was passed to M:Android.Net.Nsd.NsdManager.DiscoverServices(System.String,Android.Net.Nsd.NsdProtocol,Android.Net.Nsd.NsdProtocol). It identifies the discovery that should be stopped and notifies of a successful or unsuccessful stop. In API versions 20 and above, the listener object may be used for another service discovery once the callback has been called. In API versions <= 19, there is no entirely reliable way to know when a listener may be re-used, and a new listener should be created for each service discovery request.

Attributes

Remarks

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