Contents

canAddControl(_:)

Returns a Boolean value that indicates whether a capture session add the specified control.

Declaration

func canAddControl(_ control: AVCaptureControl) -> Bool

Parameters

  • control:

    The capture control to add.

Mentioned in

Return Value

true if the capture session can add the control; otherwise, false.

Discussion

Call this method to determine whether you can successfully add a control to a capture session using the addControl(_:) method. A capture session may not be able to add a control due to its current session configuration or if unsupported by the host platform.

See Also

Configuring capture controls