Contents

exportPresets(compatibleWith:)

Returns compatible export presets for the asset.

Declaration

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

Parameters

  • asset:

    An asset to export.

Return Value

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

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.

See Also

Accessing export presets