---
title: "exportPresets(compatibleWith:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avassetexportsession/exportpresets(compatiblewith:)"
---

# exportPresets(compatibleWith:)

Returns compatible export presets for the asset.

## Declaration

```swift
class func exportPresets(compatibleWith asset: AVAsset) -> [String]
```

## Parameters

- `asset`: An asset to export.

## Return Value

Return Value An array of compatible presets. See Export presets for preset values an asset export session supports.

## Discussion

Discussion Not all export presets are compatible with all assets. For example, video-only assets aren’t compatible with an audio-only preset. Call this method to determine the compatible presets for the asset you’re exporting. important: Load the asset’s tracks property before calling this method to avoid blocking the calling thread.

## See Also

### Accessing export presets

- [presetName](avfoundation/avassetexportsession/presetname.md)
- [determineCompatibleFileTypes(completionHandler:)](avfoundation/avassetexportsession/determinecompatiblefiletypes(completionhandler:).md)
- [allExportPresets()](avfoundation/avassetexportsession/allexportpresets().md)
- [determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)](avfoundation/avassetexportsession/determinecompatibility(ofexportpreset:with:outputfiletype:completionhandler:).md)
