<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAPairedDevice/DevicesSequence/AsyncIterator/next()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware14WAPairedDeviceV15DevicesSequenceV13AsyncIteratorC4nextSDys6UInt64VACGSgyYaKF"
  },
  "title" : "next()"
}
-->

# next()

Returns the next dictionary in the sequence.

```
func next() async throws -> WAPairedDevice.DevicesSequence.AsyncIterator.Element?
```

## Return Value

The next [`WAPairedDevice.Devices`](/documentation/WiFiAware/WAPairedDevice/Devices) snapshot, or `nil` if it’s at the end of the sequence.

## Discussion

The [`WAPairedDevice.Devices`](/documentation/WiFiAware/WAPairedDevice/Devices) dictionary holds the latest snapshot of the currently paired devices that are known and accessible to your app.

> Throws: An error if the system can’t read the sequence, or if your app isn’t permitted to access Wi-Fi Aware devices.

---

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)