- c
- is the channel created at WifiP2pManager.Initialize(Android.Content.Context, Android.OS.Looper, Android.OS.Looper)
- listener
- for callbacks on success or failure. Can be null.
Initiate service discovery. A discovery process involves scanning for requested services for the purpose of establishing a connection to a peer that supports an available service.
The function call immediately returns after sending a request to start service discovery to the framework. The application is notified of a success or failure to initiate discovery through listener callbacks NoType:android/net/wifi/p2p/WifiP2pManager$ActionListener;Href=../../../../../reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html#onSuccess() or NoType:android/net/wifi/p2p/WifiP2pManager$ActionListener;Href=../../../../../reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html#onFailure(int).
The services to be discovered are specified with calls to WifiP2pManager.AddServiceRequest(.Channel, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest).
The application is notified of the response against the service discovery request through listener callbacks registered by WifiP2pManager.setServiceResponseListener(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener) or WifiP2pManager.SetDnsSdResponseListeners(.Channel, .IDnsSdServiceResponseListener, .IDnsSdServiceResponseListener), or WifiP2pManager.SetUpnpServiceResponseListener(.Channel, .IUpnpServiceResponseListener).