Instance Method

canAddInput(_:)

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

Declaration

func canAddInput(_ input: AVCaptureInput) -> Bool

Parameters

input

An input that you want to add to the session.

Return Value

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

See Also

Managing Inputs and Outputs

var inputs: [AVCaptureInput]

The capture session’s inputs.

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 canAddOutput(AVCaptureOutput) -> Bool

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

func addOutput(AVCaptureOutput)

Adds a given output to the session.

func removeOutput(AVCaptureOutput)

Removes a given output.