Instance Property

formats

The capture formats supported by the device.

Declaration

var formats: [AVCaptureDevice.Format] { get }

Discussion

An AVCaptureDevice.Format object describes in detail the video, image, or audio parameters of a specific mode of capture. If you need access to capture settings not covered by an AVCaptureSession preset, you can set the activeFormat property to any of the formats in this array.

You can observe changes to the value of this property using Key-value observing.

See Also

Managing Formats

var activeFormat: AVCaptureDevice.Format

The currently active media data format of the capture device.

var activeDepthDataFormat: AVCaptureDevice.Format?

The currently active depth data format of the capture device.

class AVCaptureDevice.Format

A set of media format and capture settings (such as video resolution and frame rate) that can be used to configure a capture device.