Instance Property

isVirtualDevice

A Boolean value that indicates whether the device is a virtual device consisting of two or more physical devices.

Declaration

var isVirtualDevice: Bool { get }

Discussion

Two examples of virtual devices are:

  • The dual camera, which supports seamless switching between wide-angle and telephoto cameras while zooming and generating depth data from the disparities between the points of view of the physical cameras.

  • The TrueDepth camera, which generates depth data from disparities between YUV and infrared cameras pointed in the same direction.

See Also

Inspecting Device Characteristics

var uniqueID: String

An ID unique to the model of device corresponding to the receiver.

var modelID: String

The model ID of the device.

var manufacturer: String

A human-readable string describing the manufacturer of the device.

var localizedName: String

A localized, human-readable name for the receiver.

var isConnected: Bool

Indicates whether the device is currently connected.

var deviceType: AVCaptureDevice.DeviceType

The general type of the device, such as a built-in microphone or wide-angle camera.

var constituentDevices: [AVCaptureDevice]

An array of physical devices comprising a virtual device.

Beta
var lensAperture: Float

The size of the lens diaphragm.

var position: AVCaptureDevice.Position

Indicates the physical position of the device hardware on the system.

func hasMediaType(AVMediaType) -> Bool

Returns a Boolean value that indicates whether the device provides media with a given type.

func supportsSessionPreset(AVCaptureSession.Preset) -> Bool

Returns a Boolean value that indicates whether the receiver can be used in a capture session configured with the given preset.

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