Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCaptureConnectionMBS class.

AVCaptureConnectionMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true on Mac OS X 10.7 and newer.

AVCaptureConnectionMBS.connectionWithInputPort(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS) as AVCaptureConnectionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a capture connection describing a connection between the specified input port and the specified video preview layer.

port: An AVCaptureInputPort object associated with an AVCaptureInput object.
layer: An AVCaptureVideoPreviewLayer object.

Returns a capture connection describing a connection between the port and layer.

You can add the connection returned by this method to an AVCaptureSession instance using addConnection:.

When using addInput or addOutput, connections are automatically formed between all compatible inputs and outputs. You do not need to manually create and add connections to the session unless you use the primitive addInputWithNoConnections or addOutputWithNoConnections methods.

Some examples using this method:

AVCaptureConnectionMBS.connectionWithInputPorts(ports() as AVCaptureInputPortMBS, output as AVCaptureOutputMBS) as AVCaptureConnectionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a capture connection describing a connection between the specified input ports and the specified output.

ports: An array of AVCaptureInputPort objects associated with AVCaptureInput objects.
output: An AVCaptureOutput object.

Returns a capture connection describing a connection between inputPorts and the output.

You can add the connection returned by this method to an AVCaptureSession instance using addConnection.

When using addInput or addOutput, connections are automatically formed between all compatible inputs and outputs. You do not need to manually create and add connections to the session unless you use the primitive addInputWithNoConnections or addOutputWithNoConnections methods.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...