Android.Net.Wifi.P2p Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides classes to create peer-to-peer (P2P) connections with Wi-Fi Direct.
Classes
| Name | Description |
|---|---|
| WifiP2pConfig |
A class representing a Wi-Fi P2p configuration for setting up a connection |
| WifiP2pConfig.Builder |
Builder used to build |
| WifiP2pConfig.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pConfig. |
| WifiP2pConnectionInfo |
A class representing the connection capabilities of a Wi-Fi P2P link. |
| WifiP2pConnectionInfo.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pConnectionInfo. |
| WifiP2pDevice |
A class representing a Wi-Fi p2p device |
| WifiP2pDevice.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pDevice. |
| WifiP2pDeviceList |
A class representing a Wi-Fi P2p device list. |
| WifiP2pDeviceList.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pDeviceList. |
| WifiP2pDirInfo |
This object contains the Device Identity Resolution (DIR) Info to check if the device is a previously paired device. |
| WifiP2pDirInfo.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pDirInfo. |
| WifiP2pDiscoveryConfig |
A class representing a Wi-Fi P2P scan configuration for setting up discovery. |
| WifiP2pDiscoveryConfig.Builder |
Builder for |
| WifiP2pDiscoveryConfig.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pDiscoveryConfig. |
| WifiP2pGroup |
A class representing a Wi-Fi P2p group. |
| WifiP2pGroup.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pGroup. |
| WifiP2pInfo |
A class representing connection information about a Wi-Fi p2p group |
| WifiP2pInfo.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pInfo. |
| WifiP2pManager |
This class provides the API for managing Wi-Fi peer-to-peer connectivity. |
| WifiP2pManager.AttachedEventArgs |
Provides the peer MAC address when an external approver registration succeeds. |
| WifiP2pManager.Channel |
A channel that connects the application to the Wifi p2p framework. |
| WifiP2pManager.ConnectionInfoEventArgs |
Provides the requested Wi-Fi Direct connection information for OnConnectionInfoAvailable(WifiP2pInfo). |
| WifiP2pManager.ConnectionRequestedEventArgs |
Provides the request type, peer configuration, and peer device for an incoming connection request sent to an external approver. |
| WifiP2pManager.DetachedEventArgs |
Provides the peer MAC address and the reason when an external approver is detached. |
| WifiP2pManager.DeviceConfigurationChangedEventArgs |
Provides the details of this device when they change. |
| WifiP2pManager.DeviceInfoEventArgs |
Provides the requested Wi-Fi Direct device information. |
| WifiP2pManager.DiscoveryStateChangedEventArgs |
Provides the peer discovery state when peer discovery starts or stops. |
| WifiP2pManager.DiscoveryStateEventArgs |
Provides the requested peer discovery state. |
| WifiP2pManager.DnsSdServiceResponseEventArgs |
Provides the Bonjour service response for OnDnsSdServiceAvailable(String, String, WifiP2pDevice). |
| WifiP2pManager.DnsSdTxtRecordEventArgs |
Provides the Bonjour TXT record response for OnDnsSdTxtRecordAvailable(String, IDictionary<String,String>, WifiP2pDevice). |
| WifiP2pManager.FailureEventArgs |
Provides the failure reason for OnFailure(WifiP2pFailureReason). |
| WifiP2pManager.FrequencyChangedEventArgs |
Provides the connection information and group details when the frequency of a formed group changes. |
| WifiP2pManager.GroupCreatedEventArgs |
Provides the connection information and group details when a Wi-Fi Direct group is created. |
| WifiP2pManager.GroupCreationFailedEventArgs |
Provides the reason when group creation fails. |
| WifiP2pManager.GroupInfoEventArgs |
Provides the requested Wi-Fi Direct group information for OnGroupInfoAvailable(WifiP2pGroup). |
| WifiP2pManager.ListenStateChangedEventArgs |
Provides the peer listen state when peer listen starts or stops. |
| WifiP2pManager.NetworkInfoEventArgs |
Provides the requested Wi-Fi Direct network information. |
| WifiP2pManager.P2pStateChangedEventArgs |
Provides the Wi-Fi Direct state when Wi-Fi Direct is enabled or disabled. |
| WifiP2pManager.P2pStateEventArgs |
Provides the requested Wi-Fi Direct state. |
| WifiP2pManager.PasswordGeneratedEventArgs |
Provides the peer MAC address and the pairing bootstrapping password that the Wi-Fi service generated for an external approver. |
| WifiP2pManager.PeerClientDisconnectedEventArgs |
Provides the connection information and group details when a group client disconnects from the group of this group owner. |
| WifiP2pManager.PeerClientJoinedEventArgs |
Provides the connection information and group details when a group client joins the group of this group owner. |
| WifiP2pManager.PeerListChangedEventArgs |
Provides the full list of current peers when the available peer list changes. |
| WifiP2pManager.PeerListEventArgs |
Provides the requested list of available peers for OnPeersAvailable(WifiP2pDeviceList). |
| WifiP2pManager.PinGeneratedEventArgs |
Provides the peer MAC address and the PIN that the Wi-Fi service generated for an external approver. |
| WifiP2pManager.ServiceResponseEventArgs |
Provides the service discovery response for OnServiceAvailable(ServiceType, Byte[], WifiP2pDevice). |
| WifiP2pManager.UpnpServiceResponseEventArgs |
Provides the UPnP service response for OnUpnpServiceAvailable(IList<String>, WifiP2pDevice). |
| WifiP2pManager.UsdBasedServiceAvailableEventArgs |
Provides the source device and response data when a requested Un-synchronized Service Discovery (USD) based service response is available. |
| WifiP2pPairingBootstrappingConfig |
A class representing Wi-Fi Direct pairing bootstrapping configuration. |
| WifiP2pPairingBootstrappingConfig.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pPairingBootstrappingConfig. |
| WifiP2pUsdBasedLocalServiceAdvertisementConfig |
A class representing a Wi-Fi P2P USD based service advertisement configuration for advertising the services. |
| WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder |
Builder for |
| WifiP2pUsdBasedLocalServiceAdvertisementConfig.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pUsdBasedLocalServiceAdvertisementConfig. |
| WifiP2pUsdBasedServiceDiscoveryConfig |
A class representing a Wi-Fi P2P USD based service discovery configuration for discovering the services. |
| WifiP2pUsdBasedServiceDiscoveryConfig.Builder |
Builder for |
| WifiP2pUsdBasedServiceDiscoveryConfig.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pUsdBasedServiceDiscoveryConfig. |
| WifiP2pWfdInfo |
A class representing Wifi Display information for a device. |
| WifiP2pWfdInfo.InterfaceConsts |
Exposes constants from IParcelable for WifiP2pWfdInfo. |
Interfaces
| Name | Description |
|---|---|
| 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 |
| WifiP2pManager.IDiscoveryStateListener |
Interface for callback invocation when p2p state is available
in response to |
| 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 |
| WifiP2pManager.IP2pStateListener |
Interface for callback invocation when p2p state is available
in response to |
| 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
| Name | Description |
|---|---|
| ApproverDetachReason |
Identifies why an external approver was detached. |
| ConnectionRequestType |
Identifies the result of an incoming connection request. |
| ExternalApproverRequestType |
Identifies the type of a request to an external approver: negotiation, invitation, or join. |
| Frequency |
Identifies the required operating band of the group owner. |
| GroupClientIPProvisioningMode |
Identifies the IP provisioning mode to use when the device joins a group as a group client. |
| GroupNetworkIdType |
Identifies the special temporary and persistent network ID values of a group. |
| GroupOwnerIntent |
Identifies the least, most, and system-chosen inclination to be a group owner. |
| GroupSecurityType |
Identifies the security type of a group. |
| PairingBootstrappingMethods |
Identifies pairing bootstrapping methods. |
| PccModeConnectionType |
Identifies the PCC mode connection type. |
| Version |
Identifies a P2P protocol version. |
| WfdInfoDeviceInfo |
Identifies bits and bit masks of the Wi-Fi Display (WFD) device information. |
| WfdInfoDeviceType |
Identifies the Wi-Fi Display (WFD) device type. |
| WfdInfoPreferredConnectivity |
Identifies the Wi-Fi Display (WFD) preferred connectivity. |
| WifiP2pCreationFailureReason |
Identifies why group creation failed. |
| WifiP2pDeviceState |
Enumerates values returned by several types. |
| WifiP2pDiscoveryState |
Identifies whether P2P discovery has started or stopped. |
| WifiP2pFailureReason |
Identifies why a P2P operation failed. |
| WifiP2pListenState |
Identifies whether the P2P listen state has started or stopped. |
| WifiP2pManagerWifiP2pScan |
Identifies which channels a P2P scan uses: all channels, only social channels, or one specific channel. |
| WifiP2pState |
Enumerates values returned by several types. |