Share via


WifiP2pDnsSdServiceRequest.NewInstance Method

Definition

Overloads

NewInstance()

Create a service discovery request to search all Bonjour services.

NewInstance(String)

Create a service discovery to search for Bonjour services with the specified service type.

NewInstance(String, String)

Create a service discovery request to get the TXT data from the specified Bonjour service.

NewInstance()

Create a service discovery request to search all Bonjour services.

[Android.Runtime.Register("newInstance", "()Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceRequest;", "")]
public static Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceRequest? NewInstance ();
[<Android.Runtime.Register("newInstance", "()Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceRequest;", "")>]
static member NewInstance : unit -> Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceRequest

Returns

Attributes

Remarks

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

NewInstance(String)

Create a service discovery to search for Bonjour services with the specified service type.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceRequest;", "")]
public static Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceRequest? NewInstance (string? serviceType);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceRequest;", "")>]
static member NewInstance : string -> Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceRequest

Parameters

serviceType
String

service type. Cannot be null
"_afpovertcp._tcp."(Apple File Sharing over TCP)
"_ipp._tcp" (IP Printing over TCP)
"_http._tcp" (http service)

Returns

Attributes

Remarks

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

NewInstance(String, String)

Create a service discovery request to get the TXT data from the specified Bonjour service.

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

Parameters

instanceName
String

instance name. Cannot be null.
"MyPrinter"

serviceType
String

service type. Cannot be null.
e.g)
"_afpovertcp._tcp"(Apple File Sharing over TCP)
"_ipp._tcp" (IP Printing over TCP)

Returns

Attributes

Remarks

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