Skip to content

Commit

Permalink
Added onDuplicateDownload block to notify once a file that is in queu…
Browse files Browse the repository at this point in the history
…elist or is downloading is enqueued again.
  • Loading branch information
Matteo Crippa committed Oct 25, 2013
1 parent b53ae9c commit dc094c0
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 308 deletions.
3 changes: 3 additions & 0 deletions Classes/BDMultiDownloader.h
Expand Up @@ -112,6 +112,9 @@
the queue which completion block is executed in. If NULL, execute in main queue.
*/
@property (nonatomic, assign) dispatch_queue_t completionQueue;

//block called when a file is enqueued more than a time
@property (nonatomic, copy) void (^onDuplicateDownload)(NSString*);
//block called when encountered error
@property (nonatomic, copy) void (^onNetworkError)(NSError*);
//block called to indicates network activity. YES when there's network activity from this class. No otherwise. This can be used to toggle iOS's network status indicator.
Expand Down

0 comments on commit dc094c0

Please sign in to comment.