Instance Property


An object representing the capture device’s own clock.


var clock: CMClock? { get }


The returned CMClock object is read-only and may not reflect the actual clock in the capture device.

See Also

Inspecting an Input Port

var isEnabled: Bool

Indicates whether the port is enabled.

var input: AVCaptureInput

The input object that owns the port.

var mediaType: AVMediaType

The port’s media type.

var formatDescription: CMFormatDescription?

A description of the port format.

var sourceDeviceType: AVCaptureDevice.DeviceType?

The device type of the source camera providing the photo.

var sourceDevicePosition: AVCaptureDevice.Position

The position of the source device providing input through this port.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software