다음을 통해 공유


NsdManager.IServiceInfoCallback.OnServiceUpdated(NsdServiceInfo) Method

Definition

Reports updated service info.

[Android.Runtime.Register("onServiceUpdated", "(Landroid/net/nsd/NsdServiceInfo;)V", "GetOnServiceUpdated_Landroid_net_nsd_NsdServiceInfo_Handler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnServiceUpdated (Android.Net.Nsd.NsdServiceInfo serviceInfo);
[<Android.Runtime.Register("onServiceUpdated", "(Landroid/net/nsd/NsdServiceInfo;)V", "GetOnServiceUpdated_Landroid_net_nsd_NsdServiceInfo_Handler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnServiceUpdated : Android.Net.Nsd.NsdServiceInfo -> unit

Parameters

serviceInfo
NsdServiceInfo
Attributes

Remarks

Reports updated service info.

Called on the executor passed to NsdManager#registerServiceInfoCallback. Any service updates will be notified via this callback until NsdManager#unregisterServiceInfoCallback is called. This will only be called once the service is found, so may never be called if the service is never present.

Java documentation for android.net.nsd.NsdManager.ServiceInfoCallback.onServiceUpdated(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