다음을 통해 공유


NsdManager.IResolveListener.OnServiceResolved(NsdServiceInfo) Method

Definition

Called on the internal thread or with an executor passed to NsdManager#resolveService to report the resolved service info.

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

Parameters

serviceInfo
NsdServiceInfo
Attributes

Remarks

Called on the internal thread or with an executor passed to NsdManager#resolveService to report the resolved service info.

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

Java documentation for android.net.nsd.NsdManager.ResolveListener.onServiceResolved(android.net.nsd.NsdServiceInfo).

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