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

# availableMediaTypes(for:)

Retrieves the available media types for the specified source type.

```
class func availableMediaTypes(for sourceType: UIImagePickerController.SourceType) -> [String]?
```

## Parameters

`sourceType`

The source to use to pick an image.

## Return Value

An array whose elements identify the available media types for the specified source type.

## Discussion

Some iOS devices support video recording. Use this method, along with the [`isSourceTypeAvailable(_:)`](/documentation/UIKit/UIImagePickerController/isSourceTypeAvailable(_:)) method, to determine if video recording is available on a device. The availability of video recording is indicated by the presence of the `kUTTypeMovie` media type for the [`UIImagePickerController.SourceType.camera`](/documentation/UIKit/UIImagePickerController/SourceType-swift.enum/camera) source type.

---

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)