---
title: primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturemoviefileoutput/primaryconstituentdevicerestrictedswitchingbehaviorconditionsforrecording
---

# primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording

The conditions during which camera switching may occur while recording.

## Declaration

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

## Discussion

Discussion The default conditions include videoZoomChanged, focusModeChanged, and exposureModeChanged. This property is key-value observable.

## See Also

### Restricting camera switching

- [isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled](avfoundation/avcapturemoviefileoutput/isprimaryconstituentdeviceswitchingbehaviorforrecordingenabled.md)
- [setPrimaryConstituentDeviceSwitchingBehaviorForRecording(_:restrictedSwitchingBehaviorConditions:)](avfoundation/avcapturemoviefileoutput/setprimaryconstituentdeviceswitchingbehaviorforrecording(_:restrictedswitchingbehaviorconditions:).md)
- [primaryConstituentDeviceSwitchingBehaviorForRecording](avfoundation/avcapturemoviefileoutput/primaryconstituentdeviceswitchingbehaviorforrecording.md)
