<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/PrimaryConstituentDeviceSwitchingBehavior-swift.enum/locked",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVCapturePrimaryConstituentDeviceSwitchingBehavior@AVCapturePrimaryConstituentDeviceSwitchingBehaviorLocked"
  },
  "title" : "AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.locked"
}
-->

# AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.locked

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

```
case locked
```

## Discussion

A locked value restricts the [`minAvailableVideoZoomFactor`](/documentation/AVFoundation/AVCaptureDevice/minAvailableVideoZoomFactor) property value to the switch-over zoom factor of the active primary constituent device. See [`virtualDeviceSwitchOverVideoZoomFactors`](/documentation/AVFoundation/AVCaptureDevice/virtualDeviceSwitchOverVideoZoomFactors) for more information.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)