Stay organized with collections
Save and categorize content based on your preferences.
WifiP2pManager.ChannelListener
public
static
interface
WifiP2pManager.ChannelListener
android.net.wifi.p2p.WifiP2pManager.ChannelListener
|
Interface for callback invocation when framework channel is lost
Summary
Public methods
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.ChannelListener\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWifiP2pManager.ChannelListener\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/p2p/WifiP2pManager.ChannelListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWifiP2pManager.ChannelListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.net.wifi.p2p.WifiP2pManager.ChannelListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for callback invocation when framework channel is lost\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onChannelDisconnected](/reference/android/net/wifi/p2p/WifiP2pManager.ChannelListener#onChannelDisconnected())`() ` The channel to the framework has been disconnected. |\n\nPublic methods\n--------------\n\n### onChannelDisconnected\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onChannelDisconnected ()\n```\n\nThe channel to the framework has been disconnected.\nApplication could try re-initializing using [WifiP2pManager.initialize(Context, Looper, ChannelListener)](/reference/android/net/wifi/p2p/WifiP2pManager#initialize(android.content.Context,%20android.os.Looper,%20android.net.wifi.p2p.WifiP2pManager.ChannelListener))\n\n\u003cbr /\u003e"]]