10#import <Foundation/Foundation.h>
14NS_ASSUME_NONNULL_BEGIN
21@protocol MarkerDownloadManagerDelegate <NSObject>
54@property(nonatomic, readonly)
unsigned int numTasks;
67- (instancetype)initWithTasks:(nullable NSArray *)tasks
68 delegate:(nullable id<MarkerDownloadManagerDelegate>)delegate;
Runs a list of marker download tasks one after another.
Definition MarkerDownloadManager.h:49
float currentProgress
The current task's download progress, 0…1.
Definition MarkerDownloadManager.m:99
unsigned int numTasks
The number of tasks.
Definition MarkerDownloadManager.m:94
void cancel()
Cancels the in-flight download.
Definition MarkerDownloadManager.m:127
unsigned int currentIndex
The index of the task currently downloading.
Definition MarkerDownloadManager.h:52
float overallProgress
The progress across all tasks, 0…1.
Definition MarkerDownloadManager.m:104
void start()
Starts downloading the first task.
Definition MarkerDownloadManager.m:111
Performs a single HTTP request.
Definition Downloader.h:30