to top
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

? Examples
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
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.