---
title: "download(_:didReceiveDataOfLength:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsurldownloaddelegate/download(_:didreceivedataoflength:)"
---

# download(_:didReceiveDataOfLength:)

Sent as a download object receives data incrementally.

## Declaration

```swift
optional func download(_ download: NSURLDownload, didReceiveDataOfLength length: Int)
```

## Parameters

- `download`: The URL download object sending the message.
- `length`: The amount of data received in this increment of the download, measured in bytes.

## See Also

### Download Data and Responses

- [download(_:decideDestinationWithSuggestedFilename:)](foundation/nsurldownloaddelegate/download(_:decidedestinationwithsuggestedfilename:).md)
- [downloadDidBegin(_:)](foundation/nsurldownloaddelegate/downloaddidbegin(_:).md)
- [download(_:didCreateDestination:)](foundation/nsurldownloaddelegate/download(_:didcreatedestination:).md)
- [download(_:didReceive:)](foundation/nsurldownloaddelegate/download(_:didreceive:)-817z3.md)
- [download(_:shouldDecodeSourceDataOfMIMEType:)](foundation/nsurldownloaddelegate/download(_:shoulddecodesourcedataofmimetype:).md)
- [download(_:willResumeWith:fromByte:)](foundation/nsurldownloaddelegate/download(_:willresumewith:frombyte:).md)
- [download(_:willSend:redirectResponse:)](foundation/nsurldownloaddelegate/download(_:willsend:redirectresponse:).md)
