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 WifiP2pManager.initialize(Context, Looper, 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
public void close ()

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