WifiP2pServiceRequest.NewInstance Method

Definition

Overloads

NewInstance(ServiceType)

Create a service discovery request.

NewInstance(ServiceType, String)

Create a service discovery request.

NewInstance(ServiceType)

Create a service discovery request.

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

Parameters

protocolType
ServiceType

can be WifiP2pServiceInfo#SERVICE_TYPE_ALL or WifiP2pServiceInfo#SERVICE_TYPE_VENDOR_SPECIFIC. In order to create a UPnP or Bonjour service request, use WifiP2pUpnpServiceRequest or WifiP2pDnsSdServiceRequest respectively

Returns

service discovery request.

Attributes

Remarks

Create a service discovery request.

Java documentation for android.net.wifi.p2p.nsd.WifiP2pServiceRequest.newInstance(int).

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(ServiceType, String)

Create a service discovery request.

[Android.Runtime.Register("newInstance", "(ILjava/lang/String;)Landroid/net/wifi/p2p/nsd/WifiP2pServiceRequest;", "")]
public static Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest? NewInstance (Android.Net.Wifi.P2p.Nsd.ServiceType protocolType, string? queryData);
[<Android.Runtime.Register("newInstance", "(ILjava/lang/String;)Landroid/net/wifi/p2p/nsd/WifiP2pServiceRequest;", "")>]
static member NewInstance : Android.Net.Wifi.P2p.Nsd.ServiceType * string -> Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest

Parameters

protocolType
ServiceType

can be WifiP2pServiceInfo#SERVICE_TYPE_ALL or WifiP2pServiceInfo#SERVICE_TYPE_VENDOR_SPECIFIC. In order to create a UPnP or Bonjour service request, use WifiP2pUpnpServiceRequest or WifiP2pDnsSdServiceRequest respectively

queryData
String

hex string that is vendor specific. Can be null.

Returns

service discovery request.

Attributes

Remarks

Create a service discovery request.

Java documentation for android.net.wifi.p2p.nsd.WifiP2pServiceRequest.newInstance(int, 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