File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2424 */
2525@property (nonatomic , readonly ) NSArray *allPackages;
2626
27+ /* *
28+ * If downloads should be resumed if partial downloads found
29+ * Default is YES
30+ */
31+ @property (nonatomic ) BOOL resumeDownloads;
32+
2733/* *
2834 * Package manager's delegate
2935 */
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ - (id)init
5050
5151 self.downloadManager = [[CCPackageDownloadManager alloc ] init ];
5252 _downloadManager.delegate = self;
53+ _downloadManager.resumeDownloads = YES ;
5354
5455 self.unzippingQueue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_LOW, 0 );
5556 }
@@ -218,6 +219,16 @@ - (void)setUnzippingQueue:(dispatch_queue_t)unzippingQueue
218219 _unzippingQueue = unzippingQueue;
219220}
220221
222+ - (void )setResumeDownloads : (BOOL )resumeDownloads
223+ {
224+ _downloadManager.resumeDownloads = resumeDownloads;
225+ }
226+
227+ - (BOOL )resumeDownloads
228+ {
229+ return _downloadManager.resumeDownloads ;
230+ }
231+
221232
222233#pragma mark - download
223234
You can’t perform that action at this time.
0 commit comments