Most visited

Recently visited

Added in API level 16

WifiP2pDnsSdServiceInfo

public class WifiP2pDnsSdServiceInfo
extends WifiP2pServiceInfo

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


存储通过Wi-Fi对等设置发布的Bonjour服务信息的类。

也可以看看:

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)

创建一个Bonjour服务信息对象。

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)

创建一个Bonjour服务信息对象。

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

Hooray!