Android.Net.Wifi.P2p Namespace

Provides classes to create peer-to-peer (P2P) connections with Wi-Fi Direct.

Classes

WifiP2pConfig

A class representing a Wi-Fi P2p configuration for setting up a connection

        <code data-dev-comment-type="c">WifiP2pManager</code>
WifiP2pConfig.Builder

Builder used to build WifiP2pConfig objects for creating or joining a group.

WifiP2pConfig.InterfaceConsts
WifiP2pDevice

A class representing a Wi-Fi p2p device

        Note that the operations are not thread safe
        <code data-dev-comment-type="c">WifiP2pManager</code>
WifiP2pDevice.InterfaceConsts
WifiP2pDeviceList

A class representing a Wi-Fi P2p device list.

WifiP2pDeviceList.InterfaceConsts
WifiP2pDiscoveryConfig

A class representing a Wi-Fi P2P scan configuration for setting up discovery.

WifiP2pDiscoveryConfig.Builder

Builder for WifiP2pDiscoveryConfig.

WifiP2pDiscoveryConfig.InterfaceConsts
WifiP2pGroup

A class representing a Wi-Fi P2p group.

WifiP2pGroup.InterfaceConsts
WifiP2pInfo

A class representing connection information about a Wi-Fi p2p group

        <code data-dev-comment-type="c">WifiP2pManager</code>
WifiP2pInfo.InterfaceConsts
WifiP2pManager

This class provides the API for managing Wi-Fi peer-to-peer connectivity.

WifiP2pManager.AttachedEventArgs
WifiP2pManager.Channel

A channel that connects the application to the Wifi p2p framework.

WifiP2pManager.ConnectionInfoEventArgs
WifiP2pManager.ConnectionRequestedEventArgs
WifiP2pManager.DetachedEventArgs
WifiP2pManager.DeviceConfigurationChangedEventArgs
WifiP2pManager.DeviceInfoEventArgs
WifiP2pManager.DiscoveryStateChangedEventArgs
WifiP2pManager.DiscoveryStateEventArgs
WifiP2pManager.DnsSdServiceResponseEventArgs
WifiP2pManager.DnsSdTxtRecordEventArgs
WifiP2pManager.FailureEventArgs
WifiP2pManager.FrequencyChangedEventArgs
WifiP2pManager.GroupCreatedEventArgs
WifiP2pManager.GroupCreationFailedEventArgs
WifiP2pManager.GroupInfoEventArgs
WifiP2pManager.ListenStateChangedEventArgs
WifiP2pManager.NetworkInfoEventArgs
WifiP2pManager.P2pStateChangedEventArgs
WifiP2pManager.P2pStateEventArgs
WifiP2pManager.PeerClientDisconnectedEventArgs
WifiP2pManager.PeerClientJoinedEventArgs
WifiP2pManager.PeerListChangedEventArgs
WifiP2pManager.PeerListEventArgs
WifiP2pManager.PinGeneratedEventArgs
WifiP2pManager.ServiceResponseEventArgs
WifiP2pManager.UpnpServiceResponseEventArgs
WifiP2pWfdInfo

A class representing Wifi Display information for a device.

WifiP2pWfdInfo.InterfaceConsts

Interfaces

WifiP2pManager.IActionListener

Interface for callback invocation on an application action

WifiP2pManager.IChannelListener

Interface for callback invocation when framework channel is lost

WifiP2pManager.IConnectionInfoListener

Interface for callback invocation when connection info is available

WifiP2pManager.IDeviceInfoListener

Interface for callback invocation when android.net.wifi.p2p.WifiP2pDevice is available in response to #requestDeviceInfo(Channel, DeviceInfoListener).

WifiP2pManager.IDiscoveryStateListener

Interface for callback invocation when p2p state is available in response to #requestDiscoveryState.

WifiP2pManager.IDnsSdServiceResponseListener

Interface for callback invocation when Bonjour service discovery response is received

WifiP2pManager.IDnsSdTxtRecordListener

Interface for callback invocation when Bonjour TXT record is available for a service

WifiP2pManager.IExternalApproverRequestListener

Interface for callback invocation when an incoming request is received.

WifiP2pManager.IGroupInfoListener

Interface for callback invocation when group info is available

WifiP2pManager.INetworkInfoListener

Interface for callback invocation when android.net.NetworkInfo is available in response to #requestNetworkInfo.

WifiP2pManager.IP2pStateListener

Interface for callback invocation when p2p state is available in response to #requestP2pState.

WifiP2pManager.IPeerListListener

Interface for callback invocation when peer list is available

WifiP2pManager.IServiceResponseListener

Interface for callback invocation when service discovery response other than Upnp or Bonjour is received

WifiP2pManager.IUpnpServiceResponseListener

Interface for callback invocation when upnp service discovery response is received

WifiP2pManager.IWifiP2pListener

Interface used to listen to Wi-Fi p2p various changes such as device state change, discovery started/stopped, connection change, etc.

Enums

ApproverDetachReason
ConnectionRequestType
ExternalApproverRequestType
Frequency
GroupClientIPProvisioningMode
GroupNetworkIdType
GroupOwnerIntent
WfdInfoDeviceInfo
WfdInfoDeviceType
WfdInfoPreferredConnectivity
WifiP2pCreationFailureReason
WifiP2pDeviceState

Enumerates values returned by several types.

WifiP2pDiscoveryState
WifiP2pFailureReason
WifiP2pListenState
WifiP2pManagerWifiP2pScan
WifiP2pState

Enumerates values returned by several types.