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

# current()

Fetches a one-time snapshot of all paired devices that are currently known and  accessible to your app.

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

## Return Value

A single [`WAPairedDevice.Devices`](/documentation/WiFiAware/WAPairedDevice/Devices) element holding a snapshot of the currently paired devices known to the app, or `nil` if the sequence has no more values.

## Discussion

The [`WAPairedDevice.Devices`](/documentation/WiFiAware/WAPairedDevice/Devices) dictionary holds a snapshot of the currently paired devices that are known and accessible to your app.
This method returns an empty dictionary if there are no paired devices known to your app.
The following code is an example of how to use `current()` to return the first `Devices` snapshot in the sequence:

```swift
guard let devices = try await WAPairedDevice.allDevices.current() { return }
```

Don’t use this method if you need to monitor for changes to the paired device list, or change app behavior in
response to such changes. Instead, use

```swift
for try await devices in WAPairedDevice.allDevices {
	// Process the devices.
}
```

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

> seeAlso: ``doc://com.apple.wifiaware/documentation/WiFiAware/WAPairedDevice/allDevices``

> seeAlso: ``doc://com.apple.wifiaware/documentation/WiFiAware/WAPairedDevice/allDevices(matching:)``

---

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)