An object used to display standard user interface controls for capturing media data.


class AVCaptureView : NSView


Configuring a Capture Session

var session: AVCaptureSession?

A capture session represented by this view.

Storing Media

var fileOutput: AVCaptureFileOutput?

A capture file output used to record media data.

Configuring the Delegate

var delegate: AVCaptureViewDelegate?

The capture view's delegate.

protocol AVCaptureViewDelegate

Methods you can implement to respond to capture view events.

Configuring View Attributes

var controlsStyle: AVCaptureViewControlsStyle

The style of the capture controls pane associated with the view.

enum AVCaptureViewControlsStyle

Constants that describe the controls media recording associated with the view.

var videoGravity: AVLayerVideoGravity

A string defining how the video is displayed within the views bounds rect.