API/Autodoc/Classes


RuStore::AppUpdate::AppUpdateInfo

Information about an available update.

Public Types

Name
enum class UpdateAvailability { UNKNOWN, UPDATE_NOT_AVAILABLE, UPDATE_AVAILABLE, DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS}
Update availability.
enum class InstallStatus { UNKNOWN, DOWNLOADED, DOWNLOADING, FAILED, INSTALLING, PENDING}
Update installation status if the user is already installing an update at the current time.

Public Attributes

Name
UpdateAvailability updateAvailability — Update availability.
InstallStatus installStatus — Update installation status if the user is already installing an update at the current time.
long availableVersionCode — The version code of the update.

enum UpdateAvailability

Enumerator Value Description
UNKNOWN Default value.
UPDATE_NOT_AVAILABLE No update required.
UPDATE_AVAILABLE The update needs to be downloaded, or the update has already been downloaded to the user’s device.
DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS The update is already being downloaded, or installation has already started.

Update availability.

enum InstallStatus

Enumerator Value Description
UNKNOWN Default value.
DOWNLOADED Downloaded.
DOWNLOADING Downloading.
FAILED Error.
INSTALLING Installation.
PENDING Pending.

Update installation status if the user is already installing an update at the current time.

variable updateAvailability

UpdateAvailability updateAvailability;

Update availability.

variable installStatus

InstallStatus installStatus;

Update installation status if the user is already installing an update at the current time.

variable availableVersionCode

long availableVersionCode;

The version code of the update.