Interface UpdateCallback


public interface UpdateCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateAvailable(String newVersion, String downloadUrl, boolean canAutoDownload)
    Called when a new version was found
    void
    Called when no update was found
  • Method Details

    • updateAvailable

      void updateAvailable(String newVersion, String downloadUrl, boolean canAutoDownload)
      Called when a new version was found

      Use SpigetUpdateAbstract.getLatestResourceInfo() to get all resource details

      Parameters:
      newVersion - the new version's name
      downloadUrl - URL to download the update
      canAutoDownload - whether this update can be downloaded automatically
    • upToDate

      void upToDate()
      Called when no update was found