Instance Property

virtualDevice

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

Declaration

@property(nonatomic, readonly, getter=isVirtualDevice) BOOL virtualDevice;

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

uniqueID

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

modelID

The model ID of the device.

manufacturer

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

localizedName

A localized, human-readable name for the receiver.

connected

Indicates whether the device is currently connected.

deviceType

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

constituentDevices

An array of physical devices comprising a virtual device.

lensAperture

The size of the lens diaphragm.

position

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

- hasMediaType:

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

- supportsAVCaptureSessionPreset:

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