-
public interface DownloadManager.Listener
A listener that can be used to callback notifications about download requests.
-
-
Method Summary
Modifier and Type Method Description abstract void
onChanged(@Nullable() DownloadStatus status)
Called when the overall progress of the download request set has changed. abstract void
onCompleted(@Nullable() DownloadStatus status)
Called when a download request set has been completed successfully abstract void
onFailed(@Nullable() DownloadStatus status)
Called when a download request set has failed. abstract void
onCancelled()
Called when a download request set has been removed before if it was complete. abstract void
onDeleted()
Called when a download request set has been removed after if it was complete. -
-
Method Detail
-
onChanged
abstract void onChanged(@Nullable() DownloadStatus status)
Called when the overall progress of the download request set has changed.
- Parameters:
status
- the overall status of the download request set.
-
onCompleted
abstract void onCompleted(@Nullable() DownloadStatus status)
Called when a download request set has been completed successfully
- Parameters:
status
- the overall status of the download request set.
-
onFailed
abstract void onFailed(@Nullable() DownloadStatus status)
Called when a download request set has failed.
- Parameters:
status
- the overall status of the download request set.
-
onCancelled
abstract void onCancelled()
Called when a download request set has been removed before if it was complete.
-
onDeleted
abstract void onDeleted()
Called when a download request set has been removed after if it was complete.
-
-
-
-