Contents

supportsSessionPreset(_:)

Returns a Boolean value that indicates whether you can use the device with capture session configured with the specified preset.

Declaration

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

Parameters

  • preset:

    A capture session preset.

Return Value

true if you can use the device; otherwise, false.

See Also

Inspecting device characteristics