WiFiAware establishes peer-to-peer Wi-Fi Aware connections between nearby devices, with quality-of-service control over data transmission. You advertise and discover services through WAPublishableService and WASubscribableService, drive the publisher and subscriber roles with WAPublisherListener and WASubscriberBrowser, and open a WAConnection to a discovered WAEndpoint. Use WAParameters and WAAccessCategory to shape traffic, and consult WAPerformanceForecast, WAPerformanceMode, and WAPerformanceReport to manage performance, while WAPairedDevice and WASharedSecret support pairing and secured links.
Essentials 2
The protocol and capabilities that describe a Wi-Fi Aware service and the device's support for it.
- PrWAServiceA protocol that defines a service that a device can publish or subscribe to.
- StWACapabilitiesA structure that checks the host device's supported features and capabilities.
Advertising and Discovering Services 4
Types that publish and subscribe to peer-to-peer services and drive the publisher and subscriber roles.
- StWAPublishableServiceA service, hosted by your app, that remote devices can connect to.
- StWASubscribableServiceA service your app discovers on remote devices and can connect to.
- StWAPublisherListenerConfigures a network listener to publish a service over Wi-Fi Aware and accept incoming connections from paired devices.
- StWASubscriberBrowserThe structure that configures a network browser to subscribe to a Wi-Fi Aware service and make outgoing connections to paired devices.
Establishing Connections 3
Types for opening a connection to a discovered peer and identifying its endpoint and network path.
- ClWAConnectionProvides access to the Wi-Fi Aware-specific configuration and information that underlies a given ``Network/NetworkConnection``.
- StWAEndpointThe endpoint of a Wi-Fi Aware connection.
- StWAPathA representation of the current Wi-Fi Aware path.
Pairing and Security 2
Types that represent paired devices and the shared secret used to secure links.
- StWAPairedDeviceA known Wi-Fi Aware device that your app can connect to.
- StWASharedSecretA high-entropy shared secret unique to this network connection, which can be used to pair and setup security for higher layer network protocols like TLS, QUIC or IPSec without requiring manual action
Shaping Traffic 2
Types and constants that configure data transmission and its quality-of-service category.
- StWAParametersParameters configuring a Wi-Fi Aware data path connection.
- EnWAAccessCategoryThe underling quality-of-service (QoS) the Wi-Fi layer uses to transmit data packets from a connection over the air.
Managing Performance 3
Types and constants that forecast, report on, and select the performance of a connection.
- StWAPerformanceForecastThe performance forecast for a connection setup to the remote device.
- StWAPerformanceReportThe current performance state of the data path.
- EnWAPerformanceModeThe performance mode that indicates what performance criterion to prioritize.
Errors 1
Errors that the framework can report during discovery, pairing, and data transmission.
- EnWAErrorAn error in Wi-Fi Aware.