다음을 통해 공유


NsdManager.IServiceInfoCallback.OnServiceInfoCallbackRegistrationFailed Method

Definition

Reports that registering the callback failed with an error.

[Android.Runtime.Register("onServiceInfoCallbackRegistrationFailed", "(I)V", "GetOnServiceInfoCallbackRegistrationFailed_IHandler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnServiceInfoCallbackRegistrationFailed (Android.Net.Nsd.NsdFailure errorCode);
[<Android.Runtime.Register("onServiceInfoCallbackRegistrationFailed", "(I)V", "GetOnServiceInfoCallbackRegistrationFailed_IHandler:Android.Net.Nsd.NsdManager/IServiceInfoCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnServiceInfoCallbackRegistrationFailed : Android.Net.Nsd.NsdFailure -> unit

Parameters

errorCode
NsdFailure
Attributes

Remarks

Reports that registering the callback failed with an error.

Called on the executor passed to NsdManager#registerServiceInfoCallback.

onServiceInfoCallbackRegistrationFailed will be called exactly once when the callback could not be registered. No other callback will be sent in that case.

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