Stay organized with collections
Save and categorize content based on your preferences.
WifiP2pManager.PeerListListener
public
static
interface
WifiP2pManager.PeerListListener
android.net.wifi.p2p.WifiP2pManager.PeerListListener
|
Interface for callback invocation when peer list is available
Summary
Public methods
onPeersAvailable
public abstract void onPeersAvailable (WifiP2pDeviceList peers)
The requested peer list is available
Parameters |
peers |
WifiP2pDeviceList : List of available peers |
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.PeerListListener\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWifiP2pManager.PeerListListener\n===============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/p2p/WifiP2pManager.PeerListListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWifiP2pManager.PeerListListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------|\n| android.net.wifi.p2p.WifiP2pManager.PeerListListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for callback invocation when peer list is available\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onPeersAvailable](/reference/android/net/wifi/p2p/WifiP2pManager.PeerListListener#onPeersAvailable(android.net.wifi.p2p.WifiP2pDeviceList))`(`[WifiP2pDeviceList](/reference/android/net/wifi/p2p/WifiP2pDeviceList)` peers) ` The requested peer list is available |\n\nPublic methods\n--------------\n\n### onPeersAvailable\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onPeersAvailable (WifiP2pDeviceList peers)\n```\n\nThe requested peer list is available\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------------------------------------------|\n| `peers` | `WifiP2pDeviceList`: List of available peers \u003cbr /\u003e |"]]