- c
- is the channel created at WifiP2pManager.Initialize(Android.Content.Context, Android.OS.Looper, Android.OS.Looper)
- servInfo
- is a local service information.
- listener
- for callbacks on success or failure. Can be null.
Register a local service for service discovery. If a local service is registered, the framework automatically responds to a service discovery request from a peer.
The function call immediately returns after sending a request to add a local service to the framework. The application is notified of a success or failure to add service 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 service information is set through Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo.
or its subclass calls Android.Net.Wifi.P2p.Nsd.WifiP2pUpnpServiceInfo.newInstance(java.lang.String, java.lang.String, java.util.List<java.lang.String>) or
Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceInfo.newInstance(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>) for a Upnp or Bonjour service
respectively
The service information can be cleared with calls to WifiP2pManager.RemoveLocalService(.Channel, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo) or WifiP2pManager.ClearLocalServices(.Channel, .IActionListener).