Instance Method


Returns a Boolean value that indicates whether the session can use the given preset.


func canSetSessionPreset(_ preset: AVCaptureSession.Preset) -> Bool



A preset you would like to set for the receiver. For possible values, see Video Input Presets.

Return Value

true if the receiver can use preset, otherwise false.

See Also

Managing Session Presets

struct AVCaptureSession.Preset

Constants to define capture setting presets using the sessionPreset property.

var sessionPreset: AVCaptureSession.Preset

A constant value indicating the quality level or bit rate of the output.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software