lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 16

android.net.wifi.p2p.nsd

Classes

WifiP2pDnsSdServiceInfo A class for storing Bonjour service information that is advertised over a Wi-Fi peer-to-peer setup. 
WifiP2pDnsSdServiceRequest A class for creating a Bonjour service discovery request for use with WifiP2pManager.addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and WifiP2pManager.removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)  
WifiP2pServiceInfo A class for storing service information that is advertised over a Wi-Fi peer-to-peer setup 
WifiP2pServiceRequest A class for creating a service discovery request for use with WifiP2pManager.addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and WifiP2pManager.removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)

This class is used to create service discovery request for custom vendor specific service discovery protocol WifiP2pServiceInfo.SERVICE_TYPE_VENDOR_SPECIFIC or to search all service protocols WifiP2pServiceInfo.SERVICE_TYPE_ALL

WifiP2pUpnpServiceInfo A class for storing Upnp service information that is advertised over a Wi-Fi peer-to-peer setup. 
WifiP2pUpnpServiceRequest A class for creating a Upnp service discovery request for use with WifiP2pManager.addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and WifiP2pManager.removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)