<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImagePickerController/availableCaptureModes(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImagePickerController(cm)availableCaptureModesForCameraDevice:"
  },
  "title" : "availableCaptureModes(for:)"
}
-->

# availableCaptureModes(for:)

Retrieves the capture modes supported by the specified camera device.

```
class func availableCaptureModes(for cameraDevice: UIImagePickerController.CameraDevice) -> [NSNumber]?
```

## Parameters

`cameraDevice`

A [`UIImagePickerController.CameraDevice`](/documentation/UIKit/UIImagePickerController/CameraDevice-swift.enum) constant indicating the camera you want to interrogate.

## Return Value

An array of <doc://com.apple.documentation/documentation/Foundation/NSNumber> objects indicating the capture modes supported by `cameraDevice`.

## Discussion

See [`UIImagePickerController.CameraCaptureMode`](/documentation/UIKit/UIImagePickerController/CameraCaptureMode-swift.enum) for possible values.

---

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)