EventDownloader

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun download(): Observable<TrackerD2Progress>
Link copied to clipboard
fun downloadFileResources(downloadFileResources: Boolean): EventDownloader

If true, the file resources (files and images) linked to the data values of the downloaded events are downloaded as part of this call, right after each batch of events is persisted. Only the files that have not been previously downloaded are requested, and a file that fails to be downloaded is ignored.

Link copied to clipboard

Downloads and persists Events from the server. Only instances in capture scope are downloaded. This method keeps track of the latest successful download in order to void downloading unmodified data.

Link copied to clipboard
Link copied to clipboard
fun limitByOrgunit(limitByOrgunit: Boolean): EventDownloader
Link copied to clipboard
fun limitByProgram(limitByProgram: Boolean): EventDownloader
Link copied to clipboard
fun rxDownload(): Observable<TrackerD2Progress>