Interface DatasetDownloadService.DownloadCallback
- Enclosing class:
DatasetDownloadService
public static interface DatasetDownloadService.DownloadCallback
Callback for UI-specific reactions to the download lifecycle. All methods
are invoked on the main thread.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCancelled(Dataset dataset) The download was cancelled.default voidThe download or installation failed.default voidThe download has started.default voidThe download, installation and enablement finished successfully.
-
Method Details
-
onStarted
The download has started.- Parameters:
dataset- The dataset.request- The HTTP request handling the download.
-
onSuccess
The download, installation and enablement finished successfully.- Parameters:
dataset- The dataset.
-
onError
-
onCancelled
The download was cancelled.- Parameters:
dataset- The dataset.
-