primaryConstituentDeviceSwitchingBehavior
The switching behavior for the primary constituent device.
Declaration
var primaryConstituentDeviceSwitchingBehavior: AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior { get }Discussion
The default value of this property is AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.auto for devices that support camera switching, and AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.unsupported for those that don’t.
This property is key-value observable.
See Also
Restricting camera switching
setPrimaryConstituentDeviceSwitchingBehavior(_:restrictedSwitchingBehaviorConditions:)primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsactivePrimaryConstituentDeviceSwitchingBehavioractivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsactivePrimaryConstituentAVCaptureDevice.PrimaryConstituentDeviceSwitchingBehaviorAVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionssupportedFallbackPrimaryConstituentDevicesfallbackPrimaryConstituentDevices