added in API level 14

WifiP2pManager.Channel

public static class WifiP2pManager.Channel
extends Object implements AutoCloseable

java.lang.Object
   ↳ android.net.wifi.p2p.WifiP2pManager.Channel


A channel that connects the application to the Wifi p2p framework. Most p2p operations require a Channel as an argument. An instance of Channel is obtained by doing a call on initialize(Context, Looper, WifiP2pManager.ChannelListener)

Summary

Public methods

void close()

Close the current P2P connection and indicate to the P2P service that connections created by the app can be removed.

Inherited methods

Public methods

close

added in API level 27
void close ()

Close the current P2P connection and indicate to the P2P service that connections created by the app can be removed.