Instance Property

clock

An object representing the capture device’s own clock.

Declaration

var clock: CMClock? { get }

Discussion

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.