Instance Method

addOutput:

Adds a given output to the session.

Declaration

- (void)addOutput:(AVCaptureOutput *)output;

Parameters

output

An output to add to the session.

Discussion

You can only add an output to a session using this method if canAddOutput: returns true. This method throws an exception when invoked and canAddOutput(_:) returns false.

You can invoke this method while the session is running.

See Also

Managing Inputs and Outputs

inputs

The capture session’s inputs.

- canAddInput:

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

- addInput:

Adds a given input to the session.

- removeInput:

Removes a given input.

outputs

The capture session’s outputs.

- canAddOutput:

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

- removeOutput:

Removes a given output.