---
title: activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/activeprimaryconstituentdevicerestrictedswitchingbehaviorconditions
---

# activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions

The conditions that restrict camera switching behavior for the active primary constituent device.

## Declaration

```swift
var activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { get }
```

## Discussion

Discussion For virtual devices with multiple constituent devices, this property returns the active restricted switching behavior conditions. This is equal to primaryConstituentDeviceRestrictedSwitchingBehaviorConditions except while recording using an AVCaptureMovieFileOutput that you configure with different restricted switching behavior conditions. Devices that don’t support constituent device switching return AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone. This property is key-value observable.

## See Also

### Restricting camera switching

- [setPrimaryConstituentDeviceSwitchingBehavior(_:restrictedSwitchingBehaviorConditions:)](avfoundation/avcapturedevice/setprimaryconstituentdeviceswitchingbehavior(_:restrictedswitchingbehaviorconditions:).md)
- [primaryConstituentDeviceSwitchingBehavior](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.property.md)
- [primaryConstituentDeviceRestrictedSwitchingBehaviorConditions](avfoundation/avcapturedevice/primaryconstituentdevicerestrictedswitchingbehaviorconditions-swift.property.md)
- [activePrimaryConstituentDeviceSwitchingBehavior](avfoundation/avcapturedevice/activeprimaryconstituentdeviceswitchingbehavior.md)
- [activePrimaryConstituent](avfoundation/avcapturedevice/activeprimaryconstituent.md)
- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum.md)
- [AVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](avfoundation/avcapturedevice/primaryconstituentdevicerestrictedswitchingbehaviorconditions-swift.struct.md)
- [supportedFallbackPrimaryConstituentDevices](avfoundation/avcapturedevice/supportedfallbackprimaryconstituentdevices.md)
- [fallbackPrimaryConstituentDevices](avfoundation/avcapturedevice/fallbackprimaryconstituentdevices.md)
