Share via


WifiP2pServiceRequest.NewInstance Method

Definition

Overloads

NewInstance(ServiceType)
NewInstance(ServiceType, String)

NewInstance(ServiceType)

[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

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

[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
queryData
String

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