Freigeben über


WifiP2pManager.IDnsSdServiceResponseListener.OnDnsSdServiceAvailable Method

Definition

The requested Bonjour service response is available.

[Android.Runtime.Register("onDnsSdServiceAvailable", "(Ljava/lang/String;Ljava/lang/String;Landroid/net/wifi/p2p/WifiP2pDevice;)V", "GetOnDnsSdServiceAvailable_Ljava_lang_String_Ljava_lang_String_Landroid_net_wifi_p2p_WifiP2pDevice_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IDnsSdServiceResponseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnDnsSdServiceAvailable (string? instanceName, string? registrationType, Android.Net.Wifi.P2p.WifiP2pDevice? srcDevice);
[<Android.Runtime.Register("onDnsSdServiceAvailable", "(Ljava/lang/String;Ljava/lang/String;Landroid/net/wifi/p2p/WifiP2pDevice;)V", "GetOnDnsSdServiceAvailable_Ljava_lang_String_Ljava_lang_String_Landroid_net_wifi_p2p_WifiP2pDevice_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IDnsSdServiceResponseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnDnsSdServiceAvailable : string * string * Android.Net.Wifi.P2p.WifiP2pDevice -> unit

Parameters

instanceName
String

instance name.<br> e.g) "MyPrinter".

registrationType
String

<br> e.g) "_ipp._tcp.local."

srcDevice
WifiP2pDevice

source device.

Attributes

Remarks

The requested Bonjour service response is available.

This function is invoked when the device with the specified Bonjour registration type returned the instance name.

Java documentation for android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener.onDnsSdServiceAvailable(java.lang.String, java.lang.String, android.net.wifi.p2p.WifiP2pDevice).

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