---
title: "determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avassetexportsession/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.

## Declaration

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

```swift
class func compatibility(ofExportPreset presetName: String, with asset: AVAsset, outputFileType: AVFileType?) async -> Bool
```

## Parameters

- `presetName`: The name of the preset whose compatibility you want to test. See doc://com.apple.avfoundation/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.

## See Also

### Accessing export presets

- [presetName](avfoundation/avassetexportsession/presetname.md)
- [determineCompatibleFileTypes(completionHandler:)](avfoundation/avassetexportsession/determinecompatiblefiletypes(completionhandler:).md)
- [allExportPresets()](avfoundation/avassetexportsession/allexportpresets().md)
- [exportPresets(compatibleWith:)](avfoundation/avassetexportsession/exportpresets(compatiblewith:).md)
