Language

WifiP2pDevice.WifiP2pConnectionInfo Property

Definition

Get the P2P connection info (See WifiP2pConnectionInfo of the connected client device if the device is a part of the group, otherwise null.

public virtual Android.Net.Wifi.P2p.WifiP2pConnectionInfo? WifiP2pConnectionInfo { [Android.Runtime.Register("getWifiP2pConnectionInfo", "()Landroid/net/wifi/p2p/WifiP2pConnectionInfo;", "GetGetWifiP2pConnectionInfoHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getWifiP2pConnectionInfo", "()Landroid/net/wifi/p2p/WifiP2pConnectionInfo;", "GetGetWifiP2pConnectionInfoHandler", ApiSince=37)>]
member this.WifiP2pConnectionInfo : Android.Net.Wifi.P2p.WifiP2pConnectionInfo

Property Value

the p2p connection info if the device is a part of the group, otherwise null.

Attributes

Remarks

Get the P2P connection info (See WifiP2pConnectionInfo of the connected client device if the device is a part of the group, otherwise null.

The application should listen to WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION broadcast to obtain the connection info of the connected client. When the client gets connected to the Group Owner, the connected P2P device information (WifiP2pGroup.getClientList()) in the group is updated with the connection information and broadcast the group information using WifiP2pManager.EXTRA_WIFI_P2P_GROUP extra of the WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION broadcast intent. Alternatively, the application can request for the group details with WifiP2pManager.requestGroupInfo and use (WifiP2pGroup.getClientList()) to obtain the connected client details.

Android reference for android.net.wifi.p2p.WifiP2pDevice.getWifiP2pConnectionInfo.

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