Conforms to NSObject
Declared in DTDownload.h

Overview

Methods that a delegate of a download object is being queried with.

Instance Methods

download:didFailWithError:

Sent by the download object to the delegate when the download was been aborted due to failure.

- (void)download:(DTDownload *)download didFailWithError:(NSError *)error

Parameters

download

A download object.

error

An error object that contains information about what caused the failure.

Declared In

DTDownload.h

download:didFinishWithFile:

Sent by the download object to the delegate when the download as completed successfully.

- (void)download:(DTDownload *)download didFinishWithFile:(NSString *)path

Parameters

download

A download object.

path

The file path to the downloaded file

Declared In

DTDownload.h

download:downloadedBytes:ofTotalBytes:withSpeed:

Sent by the download object to inform the delegate about its progress.

- (void)download:(DTDownload *)download downloadedBytes:(long long)downloadedBytes ofTotalBytes:(long long)totalBytes withSpeed:(float)speed

Parameters

download

A download object.

downloadedBytes

The number of bytes that were downloaded so far.

totalBytes

The number of total bytes to be downloaded.

speed

A rough estimate of the current download speed.

Declared In

DTDownload.h

downloadDidCancel:

Sent by the download object to the delegate if the download was in progress but got cancelled

- (void)downloadDidCancel:(DTDownload *)download

Parameters

download

A download object.

Declared In

DTDownload.h

downloadDidFinishHEAD:

Sent by the download object to the delegate when only a HEAD was requested and the request is done.

- (void)downloadDidFinishHEAD:(DTDownload *)download

Parameters

download

A download object.

Declared In

DTDownload.h