Share via


WifiP2pManager.RequestPeers Method

Definition

Request the current list of peers.

[Android.Runtime.Register("requestPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManager$PeerListListener;)V", "GetRequestPeers_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_WifiP2pManager_PeerListListener_Handler")]
public virtual void RequestPeers (Android.Net.Wifi.P2p.WifiP2pManager.Channel? channel, Android.Net.Wifi.P2p.WifiP2pManager.IPeerListListener? listener);
[<Android.Runtime.Register("requestPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManager$PeerListListener;)V", "GetRequestPeers_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_WifiP2pManager_PeerListListener_Handler")>]
abstract member RequestPeers : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.WifiP2pManager.IPeerListListener -> unit
override this.RequestPeers : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.WifiP2pManager.IPeerListListener -> unit

Parameters

listener
WifiP2pManager.IPeerListListener

for callback when peer list is available. Can be null.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to