A view used to display standard user interface controls for capturing media data.


class AVCaptureView : NSView


Customizing the View

var controlsStyle: AVCaptureViewControlsStyle

The style of the capture controls presented by the view.

enum AVCaptureViewControlsStyle

Constants that describe the capture view’s supported controls styles.

var videoGravity: AVLayerVideoGravity

A string value that defines how the capture view displays video within its bounds.

Configuring the Delegate

var delegate: AVCaptureViewDelegate?

The capture view’s delegate object.

protocol AVCaptureViewDelegate

The protocol that defines the methods you can implement to respond to capture view events.

Recording Media

var fileOutput: AVCaptureFileOutput?

The capture file output used to record media data.

Configuring the Capture Session