Android APIs
public class

WifiP2pDnsSdServiceInfo

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

Summary

[Expand]
Inherited Constants
From class android.net.wifi.p2p.nsd.WifiP2pServiceInfo
From interface android.os.Parcelable
Public Methods
static WifiP2pDnsSdServiceInfo newInstance(String instanceName, String serviceType, Map<StringString> txtMap)
Create a Bonjour service information object.
[Expand]
Inherited Methods
From class android.net.wifi.p2p.nsd.WifiP2pServiceInfo
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

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

Added in API level 16

Create a Bonjour service information object.

Parameters
instanceName instance name.
e.g) "MyPrinter"
serviceType service type.
e.g) "_ipp._tcp"
txtMap 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
  • Bonjour service information object