<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 2.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/DiscoverySession/devices",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDeviceDiscoverySession(py)devices"
  },
  "title" : "devices"
}
-->

# devices

A list of devices that match the search criteria of the discovery session.

```
var devices: [AVCaptureDevice] { get }
```

## Discussion

Querying this property provides an array devices currently available on the system. The system sorts the device list according to the order you specified when you created the discovery session. If you created the session with a position of [`AVCaptureDevice.Position.unspecified`](/documentation/AVFoundation/AVCaptureDevice/Position-swift.enum/unspecified), the system further sorts them by position in the [`AVCaptureDevice.Position`](/documentation/AVFoundation/AVCaptureDevice/Position-swift.enum) enumeration.

Key-value observe this property to monitor changes to the device list.

---

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)