JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MarkerDownloadManager Class Reference

Runs a list of marker download tasks one after another. More...

#include <MarkerDownloadManager.h>

Inheritance diagram for MarkerDownloadManager:
Collaboration diagram for MarkerDownloadManager:

Instance Methods

(instancetype) - initWithTasks:delegate:
 Builds the manager for a task list and a delegate.
(void) - start
 Starts downloading the first task.
(void) - cancel
 Cancels the in-flight download.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.
(void) - downloaderFinished:
 Sent when the request completes.
(void) - downloaderError:
 Sent when the request fails.

Properties

unsigned int currentIndex
 The index of the task currently downloading.
unsigned int numTasks
 The number of tasks.
float currentProgress
 The current task's download progress, 0…1.
float overallProgress
 The progress across all tasks, 0…1.

Detailed Description

Runs a list of marker download tasks one after another.

Method Documentation

◆ cancel

- (void) cancel

Cancels the in-flight download.

Ghidra address:
0x8741c

◆ initWithTasks:delegate:

- (instancetype) initWithTasks: (nullable NSArray *) tasks
delegate: (nullable id< MarkerDownloadManagerDelegate >) delegate 

Builds the manager for a task list and a delegate.

Parameters
tasksThe download tasks, each a dictionary with ItemURL / ID / Version .
delegateThe delegate told about progress; held unsafely.
Returns
The initialised manager, or nil when tasks is nil.
Ghidra address:
0x870bc

◆ start

- (void) start

Starts downloading the first task.

Ghidra address:
0x87268

Property Documentation

◆ currentProgress

- (float) currentProgress
readnonatomicassign

The current task's download progress, 0…1.

Ghidra address:
0x871c0 (getter)
Ghidra address:
0x871c0

◆ numTasks

- (unsigned int) numTasks
readnonatomicassign

The number of tasks.

Ghidra address:
0x87240 (getter)
Ghidra address:
0x87240

◆ overallProgress

- (float) overallProgress
readnonatomicassign

The progress across all tasks, 0…1.

Ghidra address:
0x871d8 (getter)
Ghidra address:
0x871d8

The documentation for this class was generated from the following files: