determineCompatibility(ofExportPreset:with:outputFileType:completionHandler:)
Determines an export preset’s compatibility to export the asset in a container of the output file type.
Declaration
class func determineCompatibility(ofExportPreset presetName: String, with asset: AVAsset, outputFileType: AVFileType?, completionHandler handler: @escaping @Sendable (Bool) -> Void)class func compatibility(ofExportPreset presetName: String, with asset: AVAsset, outputFileType: AVFileType?) async -> BoolParameters
- presetName:
The name of the preset whose compatibility you want to test. See 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.