Instance Method


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


- (void)connectionDidResumeDownloading:(NSURLConnection *)connection totalBytesWritten:(long long)totalBytesWritten expectedTotalBytes:(long long)expectedTotalBytes;



The URL connection object downloading the asset.


The total number of bytes of the downloading asset that have been written to the destination file.


The total number of bytes of the URL asset once it is completely downloaded and written to a file.


This method is invoked once a suspended download of a URL asset resumes downloading. In response, the delegate can display a progress indicator, setting the initial value of the indicator to where it was when downloading was suspended. After the URL-connection object sends this message, it sends one or more connection:didWriteData:totalBytesWritten:expectedTotalBytes: to the delegate until the download concludes.

See Also

Managing Downloads of URL Assets

- connection:didWriteData:totalBytesWritten:expectedTotalBytes:

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

- connectionDidFinishDownloading:destinationURL:

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


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software