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 |
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 |
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 |
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.