AVCaptureConnection
class AVCaptureConnection : NSObject
-
Returns the capture connection for the desired media type, otherwise nil.
Declaration
Swift
public class func connection(withMediaType mediaType: AVMediaType, fromConnections connections: [AVCaptureConnection]) -> AVCaptureConnection?Parameters
mediaTypeSpecified media type. (i.e. AVMediaTypeVideo, AVMediaTypeAudio, etc.)
connectionsArray of
AVCaptureConnectionobjects to searchReturn Value
Capture connection for the desired media type, otherwise nil
View on GitHub
AVCaptureConnection Extension Reference