Contents

WAAccessCategory

The underling quality-of-service (QoS) the Wi-Fi layer uses to transmit data packets from a connection over the air.

Declaration

enum WAAccessCategory

Overview

A given NetworkConnection is bound to a single access category at the Wi-Fi layer, based on the configuration of NWParameter’s serviceClass property. This allows your app to specify how the Wi-Fi layer transmits the NetworkConnection’s data packets, selecting the performance characteristics that are relevant to the data flow.

Wi-Fi is a shared medium, so all Wi-Fi devices, networks, apps, and NetworkConnections share the overall Wi-Fi capacity between them. An app can improve the performance of its data flows, and that of all other nearby devices and Wi-Fi networks, by choosing the lowest QoS category that meets the requirements of each of its flows. When in doubt, use the default .bestEffort category.

For more information, refer to NWParameters.ServiceClass and NWParameters.

Access categories are typically created by the system on behalf of the client, so they usually don’t need to be instantiated directly.

Topics

Providing throughput

See Also

Connection performance