---
title: devices
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/discoverysession/devices
---

# devices

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

## Declaration

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

## Mentioned in

Choosing a capture device

## Discussion

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, the system further sorts them by position in the AVCaptureDevice.Position enumeration. Key-value observe this property to monitor changes to the device list.

## See Also

### Finding devices

- [supportedMultiCamDeviceSets](avfoundation/avcapturedevice/discoverysession/supportedmulticamdevicesets.md)
