---
title: primaryConstituentDeviceSwitchingBehaviorForRecording
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturemoviefileoutput/primaryconstituentdeviceswitchingbehaviorforrecording
---

# primaryConstituentDeviceSwitchingBehaviorForRecording

The camera switching behavior to use for recording.

## Declaration

```swift
var primaryConstituentDeviceSwitchingBehaviorForRecording: AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior { get }
```

## Discussion

Discussion The default value of this property is AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.restricted. This property is key-value observable.

## See Also

### Restricting camera switching

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