Contents

addControl(_:)

Adds a control to a capture session.

Declaration

func addControl(_ control: AVCaptureControl)

Parameters

  • control:

    The capture control to add.

Mentioned in

Discussion

A capture session may not be able to add a control due to configuration reasons or limits of the host platform. Before calling this method, determine whether you can successfully add a control by calling the capture session’s canAddControl(_:) method.

You may call this method while the session is running.

See Also

Configuring capture controls