DTDownloadDelegate Protocol Reference
Conforms to | NSObject |
Declared in | DTDownload.h |
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