java.lang.Object
be.yildizgames.common.application.helper.updater.UpdateHelper

public class UpdateHelper extends Object
Handles checking for and applying updates.
Author:
Grégory Van den Borre
  • Constructor Details

    • UpdateHelper

      public UpdateHelper()
      Creates a new update helper.
  • Method Details

    • update

      public final void update(String url, String archiveName, TemporalAmount delay, int timeout, List<UpdateDownloadListener> listener)
      Checks for and applies any available updates.
      Parameters:
      url - the update URL
      archiveName - the archive file name
      delay - minimum delay between checks
      timeout - HTTP timeout
      listener - event listeners