devices
A list of devices that match the search criteria of the discovery session.
Declaration
var devices: [AVCaptureDevice] { get }Mentioned in
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.