<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSURLConnectionDownloadDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSURLConnectionDownloadDelegate"
  },
  "title" : "NSURLConnectionDownloadDelegate"
}
-->

# NSURLConnectionDownloadDelegate

A protocol that delegates of a URL connection created with Newsstand Kit implement to receive data associated with a download.

```
protocol NSURLConnectionDownloadDelegate : NSURLConnectionDelegate
```

## Overview

The `NSURLConnectionDownloadDelegate` protocol describes methods that should be implemented by the delegate of instances of `NSURLConnection` created using Newsstand Kit’s `download(with:)` method. The methods in this protocol provide progress information about the download of a URL asset and, when downloading concludes, provide a file URL where the downloaded file can be accessed.

In addition to the methods described in this protocol, an `NSURLConnection` delegate should also implement the methods described in the [`NSURLConnectionDelegate`](/documentation/Foundation/NSURLConnectionDelegate) protocol.

> Note:
> If you are using `NSURLConnection` directly, your delegate class should instead implement the methods defined in the ``doc://com.apple.foundation/documentation/Foundation/NSURLConnectionDataDelegate`` protocol.

## Topics

### Managing Downloads of URL Assets

[`connection(_:didWriteData:totalBytesWritten:expectedTotalBytes:)`](/documentation/Foundation/NSURLConnectionDownloadDelegate/connection(_:didWriteData:totalBytesWritten:expectedTotalBytes:))

Sent to the delegate to deliver progress information for a download of a URL asset to a destination file.

[`connectionDidResumeDownloading(_:totalBytesWritten:expectedTotalBytes:)`](/documentation/Foundation/NSURLConnectionDownloadDelegate/connectionDidResumeDownloading(_:totalBytesWritten:expectedTotalBytes:))

Sent to the delegate when an URL connection resumes downloading a URL asset that was earlier suspended.

[`connectionDidFinishDownloading(_:destinationURL:)`](/documentation/Foundation/NSURLConnectionDownloadDelegate/connectionDidFinishDownloading(_:destinationURL:))

Sent to the delegate when the URL connection has successfully downloaded the URL asset to a destination file.



---

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)