Added in API level 16

WifiP2pUpnpServiceInfo


open class WifiP2pUpnpServiceInfo : WifiP2pServiceInfo

A class for storing Upnp service information that is advertised over a Wi-Fi peer-to-peer setup. {@see android.net.wifi.p2p.WifiP2pManager#addLocalService} {@see android.net.wifi.p2p.WifiP2pManager#removeLocalService} {@see WifiP2pServiceInfo} {@see WifiP2pDnsSdServiceInfo}

Summary

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Int SERVICE_TYPE_ALL

All service protocol types.

Int SERVICE_TYPE_BONJOUR

DNS based service discovery protocol.

Int SERVICE_TYPE_UPNP

UPnP protocol.

Int SERVICE_TYPE_VENDOR_SPECIFIC

Vendor Specific protocol

Public methods
open static WifiP2pUpnpServiceInfo!
newInstance(uuid: String!, device: String!, services: MutableList<String!>!)

Create UPnP service information object.

Inherited functions
Int describeContents()

Implement the Parcelable interface {@hide}

Boolean equals(other: Any?)

WifiP2pUsdBasedServiceConfig? getWifiP2pUsdBasedServiceConfig()

Get the service information configured to advertise using un-synchronized service discovery (USD) protocol. See WifiP2pServiceInfo(android.net.wifi.p2p.nsd.WifiP2pUsdBasedServiceConfig)

Int hashCode()

Unit writeToParcel(dest: Parcel, flags: Int)

Implement the Parcelable interface {@hide}

Public methods

newInstance

Added in API level 16
open static fun newInstance(
    uuid: String!,
    device: String!,
    services: MutableList<String!>!
): WifiP2pUpnpServiceInfo!

Create UPnP service information object.

Parameters
uuid String!: a string representation of this UUID in the following format, as per RFC 4122.
e.g) 6859dede-8574-59ab-9332-123456789012
device String!: a string representation of this device in the following format, as per UPnP Device Architecture1.1
e.g) urn:schemas-upnp-org:device:MediaServer:1
services MutableList<String!>!: a string representation of this service in the following format, as per UPnP Device Architecture1.1
e.g) urn:schemas-upnp-org:service:ContentDirectory:1
Return
WifiP2pUpnpServiceInfo! UPnP service information object.