Instance Method

canAddConnection(_:)

Returns a Boolean value that indicates whether a given connection can be added to the receiver.

Declaration

func canAddConnection(_ connection: AVCaptureConnection) -> Bool

Parameters

connection

An AVCaptureConnection instance.

Return Value

true if connection can be added to the receiver, otherwise false.

See Also

Managing Connections

var connections: [AVCaptureConnection]

An array of connections managed by the capture session.

func addConnection(AVCaptureConnection)

Adds a given capture connection to the session.

func addInputWithNoConnections(AVCaptureInput)

Adds a capture input to the session without forming any connections.

func addOutputWithNoConnections(AVCaptureOutput)

Adds a capture output to the session without forming any connections.

func removeConnection(AVCaptureConnection)

Removes a capture connection from the session.