TechnologiesNetworking & Connectivity

WiFiAware

iOSmacOStvOSwatchOSvisionOS

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.

  • Pr
    WAService
    A protocol that defines a service that a device can publish or subscribe to.
  • St
    WACapabilities
    A 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.

  • St
    WAPublishableService
    A service, hosted by your app, that remote devices can connect to.
  • St
    WASubscribableService
    A service your app discovers on remote devices and can connect to.
  • St
    WAPublisherListener
    Configures a network listener to publish a service over Wi-Fi Aware and accept incoming connections from paired devices.
  • St
    WASubscriberBrowser
    The 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.

  • Cl
    WAConnection
    Provides access to the Wi-Fi Aware-specific configuration and information that underlies a given ``Network/NetworkConnection``.
  • St
    WAEndpoint
    The endpoint of a Wi-Fi Aware connection.
  • St
    WAPath
    A 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.

  • St
    WAPairedDevice
    A known Wi-Fi Aware device that your app can connect to.
  • St
    WASharedSecret
    A 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.

  • St
    WAParameters
    Parameters configuring a Wi-Fi Aware data path connection.
  • En
    WAAccessCategory
    The 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.

  • St
    WAPerformanceForecast
    The performance forecast for a connection setup to the remote device.
  • St
    WAPerformanceReport
    The current performance state of the data path.
  • En
    WAPerformanceMode
    The performance mode that indicates what performance criterion to prioritize.

Errors 1

Errors that the framework can report during discovery, pairing, and data transmission.

  • En
    WAError
    An error in Wi-Fi Aware.

Extends 7

NetworkConnectionNWEndpointNWErrorNWParametersBuilderNWPathListenerProviderBrowserProvider
← Networking & Connectivity