Stay organized with collections
Save and categorize content based on your preferences.
WifiP2pManager.UpnpServiceResponseListener
public
static
interface
WifiP2pManager.UpnpServiceResponseListener
android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener
|
Interface for callback invocation when upnp service discovery response
is received
Summary
Public methods
onUpnpServiceAvailable
public abstract void onUpnpServiceAvailable (List<String> uniqueServiceNames,
WifiP2pDevice srcDevice)
The requested upnp service response is available.
This function is invoked when the specified device or service is found.
Parameters |
uniqueServiceNames |
List : 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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WifiP2pManager.UpnpServiceResponseListener\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWifiP2pManager.UpnpServiceResponseListener\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/p2p/WifiP2pManager.UpnpServiceResponseListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWifiP2pManager.UpnpServiceResponseListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------|\n| android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for callback invocation when upnp service discovery response\nis received\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onUpnpServiceAvailable](/reference/android/net/wifi/p2p/WifiP2pManager.UpnpServiceResponseListener#onUpnpServiceAvailable(java.util.List\u003cjava.lang.String\u003e,%20android.net.wifi.p2p.WifiP2pDevice))`(`[List](/reference/java/util/List)`\u003c`[String](/reference/java/lang/String)`\u003e uniqueServiceNames, `[WifiP2pDevice](/reference/android/net/wifi/p2p/WifiP2pDevice)` srcDevice) ` The requested upnp service response is available. |\n\nPublic methods\n--------------\n\n### onUpnpServiceAvailable\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onUpnpServiceAvailable (List\u003cString\u003e uniqueServiceNames, \n WifiP2pDevice srcDevice)\n```\n\nThe requested upnp service response is available.\n\nThis function is invoked when the specified device or service is found.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `uniqueServiceNames` | `List`: The list of unique service names. e.g) uuid:6859dede-8574-59ab-9332-123456789012::urn:schemas-upnp-org:device: MediaServer:1 \u003cbr /\u003e |\n| `srcDevice` | `WifiP2pDevice`: source device. \u003cbr /\u003e |"]]