Skip to content

Most visited

Recently visited

navigation

WifiP2pUpnpServiceRequest

public class WifiP2pUpnpServiceRequest
extends WifiP2pServiceRequest

java.lang.Object
   ↳ android.net.wifi.p2p.nsd.WifiP2pServiceRequest
     ↳ android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest


A class for creating a Upnp service discovery request for use with addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)

See also:

Summary

Inherited constants

From interface android.os.Parcelable

Public methods

static WifiP2pUpnpServiceRequest newInstance()

Create a service discovery request to search all UPnP services.

static WifiP2pUpnpServiceRequest newInstance(String st)

Create a service discovery request to search specified UPnP services.

Inherited methods

From class android.net.wifi.p2p.nsd.WifiP2pServiceRequest
From class java.lang.Object
From interface android.os.Parcelable

Public methods

newInstance

Added in API level 16
WifiP2pUpnpServiceRequest newInstance ()

Create a service discovery request to search all UPnP services.

Returns
WifiP2pUpnpServiceRequest service request for UPnP.

newInstance

Added in API level 16
WifiP2pUpnpServiceRequest newInstance (String st)

Create a service discovery request to search specified UPnP services.

Parameters
st String: ssdp search target. Cannot be null.
e.g )
  • "ssdp:all"
  • "upnp:rootdevice"
  • "urn:schemas-upnp-org:device:MediaServer:2"
  • "urn:schemas-upnp-org:service:ContentDirectory:2"
  • "uuid:6859dede-8574-59ab-9332-123456789012"
Returns
WifiP2pUpnpServiceRequest service request for UPnP.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.