public static interface Upgrade.Callback
| Modifier and Type | Method and Description |
|---|---|
void |
noUpgradeNeeded()
Called if no upgrade is needed because app version is already the latest version.
|
void |
onConfigure()
Call to indicate that configuration files are being copoied from
the original jar file to the updated jar file.
|
void |
onDownloadTick()
Called to indicate that download progress has been made.
|
void |
onError(java.lang.String errMsg)
Called to indicate that an error occurred.
|
void |
onSuccess(java.lang.String upgradedFileName)
Called to indicate that the upgrade succeeded.
|
void |
upgradeNeeded(java.lang.String latestVersion)
Called if an upgrade is needed and downloading/configuring the latest
version of the jar file is about to proceed.
|
void noUpgradeNeeded()
void upgradeNeeded(java.lang.String latestVersion)
latestVersion - the latest versionvoid onError(java.lang.String errMsg)
errMsg - error messagevoid onDownloadTick()
void onConfigure()
void onSuccess(java.lang.String upgradedFileName)
upgradedFileName - the filename of the upgraded and configured jar file