Contents

AVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions

A structure that defines the conditions in which to restrict camera switching.

Declaration

struct PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions

Overview

Use these constants to control the conditions that allow fallback camera selection when you set the value of the primaryConstituentDeviceSwitchingBehavior property to AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.restricted.

When triggered by one or more enabled conditions, fallback camera switching waits for exposure and focus to stabilize before deciding which camera to use as the primary constituent device.

Whenever videoZoomChanged isn’t included in the restricted switching behavior conditions, AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.restricted still allows camera selection when a change in video zoom factor makes a camera eligible or ineligible for selection as the activePrimaryConstituent.

When the video zoom factor decreases to below the switch-over zoom factor of the active primary constituent device, the system selects a different camera to satisfy the requested zoom factor.

When the video zoom factor increases and crosses a camera’s switch-over zoom factor, this camera becomes eligible to set as the activePrimaryConstituent. If exposure and focus allow, this camera then becomes the new active primary constituent device. Similar to the videoZoomChanged this also waits for exposure and focus to stabilize. Otherwise the activePrimaryConstituent remains unchanged.

Topics

Switching behavior conditions

Initializers

See Also

Restricting camera switching