Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

WifiP2pDnsSdServiceInfo

public class WifiP2pDnsSdServiceInfo
extends WifiP2pServiceInfo

java.lang.Object
   ↳ android.net.wifi.p2p.nsd.WifiP2pServiceInfo
     ↳ android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo


A class for storing Bonjour service information that is advertised over a Wi-Fi peer-to-peer setup.

Summary

Inherited constants

Public methods

static WifiP2pDnsSdServiceInfo newInstance(String instanceName, String serviceType, Map<StringString> txtMap)

Create a Bonjour service information object.

Inherited methods

Public methods

newInstance

added in API level 16
public static WifiP2pDnsSdServiceInfo newInstance (String instanceName, 
                String serviceType, 
                Map<StringString> txtMap)

Create a Bonjour service information object.

Parameters
instanceName String: instance name.
e.g) "MyPrinter"

serviceType String: service type.
e.g) "_ipp._tcp"

txtMap Map: TXT record with key/value pair in a map confirming to format defined at http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt

Returns
WifiP2pDnsSdServiceInfo Bonjour service information object