---
title: resumeData
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurldownload/resumedata
---

# resumeData

Returns the resume data for a download that is not yet complete.

## Declaration

```swift
var resumeData: Data? { get }
```

## Return Value

Return Value The resume data for a download that is not yet complete. This data represents the necessary state information that an NSURLDownload object needs to resume a download. The resume data can later be used when initializing a download with init(resumeData:delegate:path:). Returns nil if the download is not able to be resumed.

## Discussion

Discussion Resume data is returned only if both the protocol and the server support resuming. For details on how to resume a connection, see the documentation for init(resumeData:delegate:path:).

## See Also

### Resuming partial downloads

- [canResumeDownloadDecoded(withEncodingMIMEType:)](foundation/nsurldownload/canresumedownloaddecoded(withencodingmimetype:).md)
- [init(resumeData:delegate:path:)](foundation/nsurldownload/init(resumedata:delegate:path:).md)
- [deletesFileUponFailure](foundation/nsurldownload/deletesfileuponfailure.md)
