Instance Method

canAddOutput(_:)

Returns a Boolean value that indicates whether a given output can be added to the session.

Declaration

func canAddOutput(_ output: AVCaptureOutput) -> Bool

Parameters

output

An output that you want to add to the session.

Return Value

true if output can be added to the session, otherwise false.

See Also

Managing Inputs and Outputs

var inputs: [AVCaptureInput]

The capture session’s inputs.

func canAddInput(AVCaptureInput) -> Bool

Returns a Boolean value that indicates whether a given input can be added to the session.

func addInput(AVCaptureInput)

Adds a given input to the session.

func removeInput(AVCaptureInput)

Removes a given input.

var outputs: [AVCaptureOutput]

The capture session’s outputs.

func addOutput(AVCaptureOutput)

Adds a given output to the session.

func removeOutput(AVCaptureOutput)

Removes a given output.