---
title: AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.locked
framework: avfoundation
role: symbol
role_heading: Case
path: avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/locked
---

# AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.locked

The device locks camera switching to the active primary constituent device.

## Declaration

```swift
case locked
```

## Discussion

Discussion A locked value restricts the minAvailableVideoZoomFactor property value to the switch-over zoom factor of the active primary constituent device. See virtualDeviceSwitchOverVideoZoomFactors for more information.

## See Also

### Switching behaviors

- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.unsupported](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/unsupported.md)
- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.auto](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/auto.md)
- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.restricted](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/restricted.md)
