All Known Implementing Classes:
EmptySplashScreen, UpdateSplashScreen

public interface UpdateDownloadListener
Listener for download update events.
Author:
Grégory Van den Borre
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when the entire download completes.
    default void
    Called when the entire download completes successfully.
    default void
    downloadUpdated(int percent)
    Called when the overall download percentage is updated.
    default void
    Called when a file download completes successfully.
    default void
    fileUpdated(Path file, int percent)
    Called when the file download percentage is updated.
    default void
    Called when a file is determined to already be up to date.
    default void
    Called when a file download is started.
    default void
    Called when downloads are started.
  • Method Details

    • fileUpToDate

      default void fileUpToDate()
      Called when a file is determined to already be up to date.
    • fileUpdated

      default void fileUpdated(Path file, int percent)
      Called when the file download percentage is updated.
      Parameters:
      file - the file currently downloaded.
      percent - the new percentage
    • fileCompletedSuccessfully

      default void fileCompletedSuccessfully(Path file)
      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

      default void startDownloadFile(Path file)
      Called when a file download is started.
      Parameters:
      file - the file path