Stay organized with collections
Save and categorize content based on your preferences.
PeerListListener
interface PeerListListener
Interface for callback invocation when peer list is available
Summary
Public methods |
abstract Unit |
The requested peer list is available
|
Public methods
onPeersAvailable
abstract fun onPeersAvailable(peers: WifiP2pDeviceList!): Unit
The requested peer list is available
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# WifiP2pManager.PeerListListener\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPeerListListener\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/p2p/WifiP2pManager.PeerListListener \"View this page in Java\") \n\n```\ninterface PeerListListener\n```\n\n|-----------------------------------------------------------|\n| [android.net.wifi.p2p.WifiP2pManager.PeerListListener](#) |\n\nInterface for callback invocation when peer list is available\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onPeersAvailable](#onPeersAvailable(android.net.wifi.p2p.WifiP2pDeviceList))`(`peers:` `[WifiP2pDeviceList](/reference/kotlin/android/net/wifi/p2p/WifiP2pDeviceList)!`)` The requested peer list is available |\n\nPublic methods\n--------------\n\n### onPeersAvailable\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onPeersAvailable(peers: WifiP2pDeviceList!): Unit\n```\n\nThe requested peer list is available\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------------------------------|\n| `peers` | [WifiP2pDeviceList](/reference/kotlin/android/net/wifi/p2p/WifiP2pDeviceList)!: List of available peers |"]]