Stay organized with collections
Save and categorize content based on your preferences.
ConnectionInfoListener
interface ConnectionInfoListener
Interface for callback invocation when connection info is available
Summary
Public methods |
abstract Unit |
The requested connection info is available
|
Public methods
onConnectionInfoAvailable
abstract fun onConnectionInfoAvailable(info: WifiP2pInfo!): Unit
The requested connection info is available
Parameters |
info |
WifiP2pInfo!: Wi-Fi p2p connection info |
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.ConnectionInfoListener\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nConnectionInfoListener\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/p2p/WifiP2pManager.ConnectionInfoListener \"View this page in Java\") \n\n```\ninterface ConnectionInfoListener\n```\n\n|-----------------------------------------------------------------|\n| [android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener](#) |\n\nInterface for callback invocation when connection info is available\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConnectionInfoAvailable](#onConnectionInfoAvailable(android.net.wifi.p2p.WifiP2pInfo))`(`info:` `[WifiP2pInfo](/reference/kotlin/android/net/wifi/p2p/WifiP2pInfo)!`)` The requested connection info is available |\n\nPublic methods\n--------------\n\n### onConnectionInfoAvailable\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onConnectionInfoAvailable(info: WifiP2pInfo!): Unit\n```\n\nThe requested connection info is available\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------------|\n| `info` | [WifiP2pInfo](/reference/kotlin/android/net/wifi/p2p/WifiP2pInfo)!: Wi-Fi p2p connection info |"]]