<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAAccessCategory",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware16WAAccessCategoryO"
  },
  "title" : "WAAccessCategory"
}
-->

# WAAccessCategory

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

```
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  `NetworkConnection`s 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](https://developer.apple.com/documentation/network/nwparameters/serviceclass-swift.enum) and [NWParameters](https://developer.apple.com/documentation/network/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

[`case bestEffort`](/documentation/WiFiAware/WAAccessCategory/bestEffort)

A default quality-of-service (QoS) type that provides high throughput for data transfers of any size.

[`case background`](/documentation/WiFiAware/WAAccessCategory/background)

A quality-of-service (QoS) type that provides high throughput for delay-tolerant, noninteractive data transfers of any size.

[`case interactiveVideo`](/documentation/WiFiAware/WAAccessCategory/interactiveVideo)

A quality-of-service (QoS) type that provides low-latency for moderate throughput flows.

[`case interactiveVoice`](/documentation/WiFiAware/WAAccessCategory/interactiveVoice)

A quality-of-service (QoS) type that provides very low-latency for low-throughput flows.

### Creating an access category

### Hashing and comparing

### Accessing Cases

### Encoding

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Decodable`](/documentation/Swift/Decodable)

[`CaseIterable`](/documentation/Swift/CaseIterable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)