Instance Property

connection

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

Declaration

@property(nonatomic, readonly) AVCaptureConnection *connection;

Discussion

When you associate a preview layer with a capture session, the capture session implicitly forms a connection to the first eligible video AVCaptureInputPort object. If you detach a preview layer from a session, the connection property becomes nil.

See Also

Session Configuration

session

The previewed capture session.

- setSessionWithNoConnection:

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