---
title: NSURLConnectionDownloadDelegate
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/nsurlconnectiondownloaddelegate
---

# NSURLConnectionDownloadDelegate

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

## Declaration

```swift
protocol NSURLConnectionDownloadDelegate : NSURLConnectionDelegate
```

## Overview

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 protocol. note: If you are using NSURLConnection directly, your delegate class should instead implement the methods defined in the NSURLConnectionDataDelegate protocol.

## Topics

### Managing Downloads of URL Assets

- [connection(_:didWriteData:totalBytesWritten:expectedTotalBytes:)](foundation/nsurlconnectiondownloaddelegate/connection(_:didwritedata:totalbyteswritten:expectedtotalbytes:).md)
- [connectionDidResumeDownloading(_:totalBytesWritten:expectedTotalBytes:)](foundation/nsurlconnectiondownloaddelegate/connectiondidresumedownloading(_:totalbyteswritten:expectedtotalbytes:).md)
- [connectionDidFinishDownloading(_:destinationURL:)](foundation/nsurlconnectiondownloaddelegate/connectiondidfinishdownloading(_:destinationurl:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSURLConnectionDelegate](foundation/nsurlconnectiondelegate.md)

## See Also

### URL Connection

- [NSURLConnection](foundation/nsurlconnection.md)
- [NSURLConnectionDelegate](foundation/nsurlconnectiondelegate.md)
- [NSURLConnectionDataDelegate](foundation/nsurlconnectiondatadelegate.md)
