Instance Method

setSessionWithNoConnection(_:)

Attaches the layer to a given session without implicitly forming a connection.

Declaration

func setSessionWithNoConnection(_ session: AVCaptureSession)

Parameters

session

A capture session.

Discussion

This method attaches the layer to a given session without implicitly forming a connection to the first eligible video AVCaptureInput.Port object. Only use this method if you intend to manually form a connection between a desired AVCaptureInput.Port object and the output and associate it to the session using its addConnection(_:) method.

See Also

Session Configuration

var session: AVCaptureSession?

The previewed capture session.

var connection: AVCaptureConnection?

The capture connection describing the AVCaptureInputPort to which the preview layer is connected.