Instance Property

formatDescription

A description of the port format.

Declaration

var formatDescription: CMFormatDescription? { get }

Discussion

The returned object describes the format of the media currently provided by the port. To be notified of format changes, subscribe to the AVCaptureInputPortFormatDescriptionDidChange notification.

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 clock: CMClock?

An object representing the capture device’s own clock.

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.