WifiP2pDnsSdServiceInfo.NewInstance Method

Definition

Create a Bonjour service information object.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceInfo;", "")]
public static Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceInfo? NewInstance (string? instanceName, string? serviceType, System.Collections.Generic.IDictionary<string,string>? txtMap);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceInfo;", "")>]
static member NewInstance : string * string * System.Collections.Generic.IDictionary<string, string> -> Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceInfo

Parameters

instanceName
String

instance name.<br> e.g) "MyPrinter"

serviceType
String

service type.<br> e.g) "_ipp._tcp"

txtMap
IDictionary<String,String>

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

Attributes

Remarks

Create a Bonjour service information object.

Java documentation for android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo.newInstance(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to