- c
- is the channel created at WifiP2pManager.Initialize(Android.Content.Context, Android.OS.Looper, Android.OS.Looper)
- listener
- for callbacks on success or failure. Can be null.
Initiate peer discovery. A discovery process involves scanning for available Wi-Fi peers for the purpose of establishing a connection.
The function call immediately returns after sending a discovery request to the framework. The application is notified of a success or failure to initiate discovery through listener callbacks NoType:android/net/wifi/p2p/WifiP2pManager$ActionListener;Href=../../../../../reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html#onSuccess() or NoType:android/net/wifi/p2p/WifiP2pManager$ActionListener;Href=../../../../../reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html#onFailure(int).
The discovery remains active until a connection is initiated or a p2p group is formed. Register for WifiP2pManager.WifiP2pPeersChangedAction intent to determine when the framework notifies of a change as peers are discovered.
Upon receiving a WifiP2pManager.WifiP2pPeersChangedAction intent, an application can request for the list of peers using WifiP2pManager.RequestPeers(.Channel, .IPeerListListener).