Class AppUpdates.UpdateInfo

java.lang.Object
com.codename1.system.AppUpdates.UpdateInfo
Enclosing class:
AppUpdates

public static final class AppUpdates.UpdateInfo extends Object
The result of #check(SuccessCallback).
  • Constructor Details

    • UpdateInfo

      public UpdateInfo(boolean available, String storeVersion, String storeUrl)

      Creates a result.

      Parameters
      • available: true when the store has a newer version

      • storeVersion: the store version, or null when unknown

      • storeUrl: the store page, or null when unknown

  • Method Details

    • isUpdateAvailable

      public boolean isUpdateAvailable()

      True when the store has a newer version.

      Returns

      true when an update is available

    • getStoreVersion

      public String getStoreVersion()

      The version in the store.

      Returns

      the version string, or null when the platform does not say

    • getStoreUrl

      public String getStoreUrl()

      The store page of the app.

      Returns

      the URL, or null