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.

Properties

numberOfParallelDownloads

The number of parallel downloads that the queue can have

@property (nonatomic, assign) NSInteger numberOfParallelDownloads

Declared In

DTDownloadQueue.h

Class Methods

sharedInstance

Access the shared cache.

+ (DTDownloadQueue *)sharedInstance

Return Value

the shared instance of the download queue.

Declared In

DTDownloadQueue.h

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