Interface UpdateDownloadListener
- All Known Implementing Classes:
EmptySplashScreen,UpdateSplashScreen
public interface UpdateDownloadListener
Listener for download update events.
- Author:
- Grégory Van den Borre
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when the entire download completes.default voidCalled when the entire download completes successfully.default voiddownloadUpdated(int percent) Called when the overall download percentage is updated.default voidCalled when a file download completes successfully.default voidfileUpdated(Path file, int percent) Called when the file download percentage is updated.default voidCalled when a file is determined to already be up to date.default voidstartDownloadFile(Path file) Called when a file download is started.default voidCalled when downloads are started.
-
Method Details
-
fileUpToDate
default void fileUpToDate()Called when a file is determined to already be up to date. -
fileUpdated
Called when the file download percentage is updated.- Parameters:
file- the file currently downloaded.percent- the new percentage
-
fileCompletedSuccessfully
Called when a file download completes successfully.- Parameters:
file- the completed file
-
downloadCompletedSuccessfully
default void downloadCompletedSuccessfully()Called when the entire download completes successfully. -
downloadUpdated
default void downloadUpdated(int percent) Called when the overall download percentage is updated.- Parameters:
percent- the new percentage
-
startDownloads
default void startDownloads()Called when downloads are started. -
completed
default void completed()Called when the entire download completes. -
startDownloadFile
Called when a file download is started.- Parameters:
file- the file path
-