<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetExportSession/configureForResumableExport()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So20AVAssetExportSessionC12AVFoundationE021configureForResumableB0AbCE15ResumptionStateOyYaF"
  },
  "title" : "configureForResumableExport()"
}
-->

# configureForResumableExport()

Configures the export session for resumable export.

```
func configureForResumableExport() async -> AVAssetExportSession.ResumptionState
```

## Return Value

A `ResumptionState` indicating whether resumption is available and
whether the export will resume from a previous state.

## Discussion

This method validates that the export session’s current configuration supports
resumption and checks the temporary directory for any partial results from
previous export attempts.

Call this method after configuring all export settings (preset, output file type,
etc.) and before calling `exportAsynchronously()`.

> Note: Even if resumption is not available, you can still perform a normal
> (non-resumable) export by calling `exportAsynchronously()`.

Example usage:

```swift
let exportSession = AVAssetExportSession(asset: asset, presetName: .hevc1920x1080)!
exportSession.outputFileType = .mov
exportSession.outputURL = outputURL
exportSession.directoryForTemporaryFiles = temporaryDirectory

let state = await exportSession.configureForResumableExport()
switch state {
case .resumable(let isResuming):
    print("Export is resumable. Continuing from previous state: \(isResuming)")
case .notResumable(let reason):
    print("Cannot perform resumable export with current configuration: \(reason)")
}

try await exportSession.export(to: outputURL, as: .mov)
```

---

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)