Added in API level 16

UpnpServiceResponseListener


interface UpnpServiceResponseListener
android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener

Interface for callback invocation when upnp service discovery response is received

Summary

Public methods
abstract Unit
onUpnpServiceAvailable(uniqueServiceNames: MutableList<String!>!, srcDevice: WifiP2pDevice!)

The requested upnp service response is available.

Public methods

onUpnpServiceAvailable

Added in API level 16
abstract fun onUpnpServiceAvailable(
    uniqueServiceNames: MutableList<String!>!,
    srcDevice: WifiP2pDevice!
): Unit

The requested upnp service response is available.

This function is invoked when the specified device or service is found.

Parameters
uniqueServiceNames MutableList<String!>!: The list of unique service names.
e.g) uuid:6859dede-8574-59ab-9332-123456789012::urn:schemas-upnp-org:device: MediaServer:1
srcDevice WifiP2pDevice!: source device.