Instance Property

devices

An array of currently available devices matching the session’s criteria.

Declaration

var devices: [AVCaptureDevice] { get }

Discussion

This property contains only capture devices that are currently available and that meet the criteria you specified when creating the device discovery session with the init(deviceTypes:mediaType:position:) initializer.

See Also

Discovering Devices

var supportedMultiCamDeviceSets: [Set<AVCaptureDevice>]

An array of sets of capture devices that you can use simultaneously in a multi-camera session.