DTDownloadQueue Class Reference
Inherits from | NSObject |
Declared in | DTDownloadQueue.h |
Overview
A global queue for DTDownloadItem instances.
Note: all URL parameters may only be remote URLs e.g. http: or https.
Instance Methods
cancelDownloadItem:
Cancels a download item
- (void)cancelDownloadItem:(DTDownloadItem *)downloadItem
Parameters
- downloadItem
The download item to cancel
Declared In
DTDownloadQueue.h
downloadItem:completion:progress:
Starts downloading a given download item.
- (void)downloadItem:(DTDownloadItem *)downloadItem completion:(DTDownloadQueueCompletionBlock)completion progress:(DTDownloadQueueProgressBlock)progress
Parameters
- downloadItem
The download item
- completion
The completion block to execute after the download is finished, either with a file or error.
- progress
The block of code to execute for each step in the download progress
Declared In
DTDownloadQueue.h