Skip to content

Most visited

Recently visited

navigation

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.

See also:

Summary

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.

Inherited methods

From class android.net.wifi.p2p.nsd.WifiP2pServiceInfo
From class java.lang.Object
From interface android.os.Parcelable

Public methods

newInstance

added in API level 16
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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)