Stay organized with collections
Save and categorize content based on your preferences.
UpnpServiceResponseListener
interface UpnpServiceResponseListener
Interface for callback invocation when upnp service discovery response is received
Summary
Public methods |
abstract Unit |
The requested upnp service response is available.
|
Public methods
onUpnpServiceAvailable
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. |
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUpnpServiceResponseListener\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/p2p/WifiP2pManager.UpnpServiceResponseListener \"View this page in Java\") \n\n```\ninterface UpnpServiceResponseListener\n```\n\n|----------------------------------------------------------------------|\n| [android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener](#) |\n\nInterface for callback invocation when upnp service discovery response is received\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onUpnpServiceAvailable](#onUpnpServiceAvailable(kotlin.collections.MutableList,%20android.net.wifi.p2p.WifiP2pDevice))`(`uniqueServiceNames:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!`, `srcDevice:` `[WifiP2pDevice](/reference/kotlin/android/net/wifi/p2p/WifiP2pDevice)!`)` The requested upnp service response is available. |\n\nPublic methods\n--------------\n\n### onUpnpServiceAvailable\n\nAdded in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onUpnpServiceAvailable(\n uniqueServiceNames: MutableList\u003cString!\u003e!, \n srcDevice: WifiP2pDevice!\n): Unit\n```\n\nThe requested upnp service response is available.\n\nThis function is invoked when the specified device or service is found.\n\n| Parameters ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `uniqueServiceNames` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e!: The list of unique service names. e.g) uuid:6859dede-8574-59ab-9332-123456789012::urn:schemas-upnp-org:device: MediaServer:1 |\n| `srcDevice` | [WifiP2pDevice](/reference/kotlin/android/net/wifi/p2p/WifiP2pDevice)!: source device. |"]]