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 24
24
*/
25
25
@property (nonatomic , readonly ) NSArray *allPackages;
26
26
27
+ /* *
28
+ * If downloads should be resumed if partial downloads found
29
+ * Default is YES
30
+ */
31
+ @property (nonatomic ) BOOL resumeDownloads;
32
+
27
33
/* *
28
34
* Package manager's delegate
29
35
*/
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ - (id)init
50
50
51
51
self.downloadManager = [[CCPackageDownloadManager alloc ] init ];
52
52
_downloadManager.delegate = self;
53
+ _downloadManager.resumeDownloads = YES ;
53
54
54
55
self.unzippingQueue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_LOW, 0 );
55
56
}
@@ -218,6 +219,16 @@ - (void)setUnzippingQueue:(dispatch_queue_t)unzippingQueue
218
219
_unzippingQueue = unzippingQueue;
219
220
}
220
221
222
+ - (void )setResumeDownloads : (BOOL )resumeDownloads
223
+ {
224
+ _downloadManager.resumeDownloads = resumeDownloads;
225
+ }
226
+
227
+ - (BOOL )resumeDownloads
228
+ {
229
+ return _downloadManager.resumeDownloads ;
230
+ }
231
+
221
232
222
233
#pragma mark - download
223
234
You can’t perform that action at this time.
0 commit comments