<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetExportSession/determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetExportSession(cm)determineCompatibilityOfExportPreset:withAsset:outputFileType:completionHandler:"
  },
  "title" : "determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)"
}
-->

# determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)

Determines an export preset’s compatibility to export the asset in a container of the output file type.

```
class func determineCompatibility(ofExportPreset presetName: String, with asset: AVAsset, outputFileType: AVFileType?, completionHandler handler: @escaping @Sendable (Bool) -> Void)
```

## Parameters

`presetName`

The name of the preset whose compatibility you want to test. See [Export presets](/documentation/AVFoundation/export-presets) for preset values an asset export session supports.

`asset`

The asset to export.

`outputFileType`

The file type of the output container.

`handler`

A callback the system passes a Boolean result when it determines the compatibility of the preset.

---

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)