Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public static final class AppUpdates.UpdateInfo
- Object
- AppUpdates.UpdateInfo
The result of
#check(SuccessCallback).Constructors
public UpdateInfo(boolean available, String storeVersion, String storeUrl) | Creates a result. |
Methods
public boolean isUpdateAvailable() | True when the store has a newer version. |
public String getStoreVersion() | The version in the store. |
public String getStoreUrl() | The store page of the app. |
Inherited methods
Constructor details
UpdateInfo
public UpdateInfo(boolean available, String storeVersion, String storeUrl)Creates a result.
Parameters
availableboolean- true when the store has a newer version
storeVersionString- the store version, or null when unknown
storeUrlString- 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