Partager via


WifiP2pManager.SetDnsSdResponseListeners Method

Definition

Register a callback to be invoked on receiving Bonjour service discovery response.

[Android.Runtime.Register("setDnsSdResponseListeners", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManager$DnsSdServiceResponseListener;Landroid/net/wifi/p2p/WifiP2pManager$DnsSdTxtRecordListener;)V", "GetSetDnsSdResponseListeners_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_WifiP2pManager_DnsSdServiceResponseListener_Landroid_net_wifi_p2p_WifiP2pManager_DnsSdTxtRecordListener_Handler")]
public virtual void SetDnsSdResponseListeners (Android.Net.Wifi.P2p.WifiP2pManager.Channel? channel, Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdServiceResponseListener? servListener, Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdTxtRecordListener? txtListener);
[<Android.Runtime.Register("setDnsSdResponseListeners", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManager$DnsSdServiceResponseListener;Landroid/net/wifi/p2p/WifiP2pManager$DnsSdTxtRecordListener;)V", "GetSetDnsSdResponseListeners_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_WifiP2pManager_DnsSdServiceResponseListener_Landroid_net_wifi_p2p_WifiP2pManager_DnsSdTxtRecordListener_Handler")>]
abstract member SetDnsSdResponseListeners : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdServiceResponseListener * Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdTxtRecordListener -> unit
override this.SetDnsSdResponseListeners : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdServiceResponseListener * Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdTxtRecordListener -> unit

Parameters

servListener
WifiP2pManager.IDnsSdServiceResponseListener

is for listening to a Bonjour service response

txtListener
WifiP2pManager.IDnsSdTxtRecordListener

is for listening to a Bonjour TXT record response

Attributes

Remarks

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