Compartilhar via


NsdManager.IResolveListener.OnResolveFailed Method

Definition

Called on the internal thread or with an executor passed to NsdManager#resolveService to report the resolution was failed with an error.

[Android.Runtime.Register("onResolveFailed", "(Landroid/net/nsd/NsdServiceInfo;I)V", "GetOnResolveFailed_Landroid_net_nsd_NsdServiceInfo_IHandler:Android.Net.Nsd.NsdManager/IResolveListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnResolveFailed (Android.Net.Nsd.NsdServiceInfo? serviceInfo, Android.Net.Nsd.NsdFailure errorCode);
[<Android.Runtime.Register("onResolveFailed", "(Landroid/net/nsd/NsdServiceInfo;I)V", "GetOnResolveFailed_Landroid_net_nsd_NsdServiceInfo_IHandler:Android.Net.Nsd.NsdManager/IResolveListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnResolveFailed : Android.Net.Nsd.NsdServiceInfo * Android.Net.Nsd.NsdFailure -> unit

Parameters

serviceInfo
NsdServiceInfo
errorCode
NsdFailure
Attributes

Remarks

Called on the internal thread or with an executor passed to NsdManager#resolveService to report the resolution was failed with an error.

A resolution operation would call either onServiceResolved or onResolveFailed once based on the result.

Java documentation for android.net.nsd.NsdManager.ResolveListener.onResolveFailed(android.net.nsd.NsdServiceInfo, int).

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