API/Autodoc/Classes/RuStore.AppUpdate.InstallState.en.md


RuStore::AppUpdate::InstallState

Describes the current state of the update installation.

Public Types

Name
enum class InstallStatus { UNKNOWN, DOWNLOADED, DOWNLOADING, FAILED, INSTALLING, PENDING}
Update installation status if the user is already installing the update at the current time.
enum class InstallErrorCode { ERROR_UNKNOWN = 4001, ERROR_DOWNLOAD, ERROR_BLOCKED, ERROR_INVALID_APK, ERROR_CONFLICT, ERROR_STORAGE, ERROR_INCOMPATIBLE, ERROR_APP_NOT_OWNED, ERROR_INTERNAL_ERROR, ERROR_ABORTED, ERROR_APK_NOT_FOUND, ERROR_EXTERNAL_SOURCE_DENIED, ERROR_ACTIVITY_SEND_INTENT = 9901, ERROR_ACTIVITY_UNKNOWN}
Error code during the download.

Public Attributes

Name
long bytesDownloaded — Number of downloaded bytes.
long totalBytesToDownload — Total number of bytes to download.
InstallStatus installStatus — Update installation status if the user is already installing the update at the current time.
InstallErrorCode installErrorCode — Error code during the download.

enum InstallStatus

Enumerator Value Description
UNKNOWN Default value.
DOWNLOADED Downloaded.
DOWNLOADING Downloading.
FAILED Failed.
INSTALLING Installing.
PENDING Pending.

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

enum InstallErrorCode

Enumerator Value Description
ERROR_UNKNOWN 4001 Unknown error.
ERROR_DOWNLOAD Error during download.
ERROR_BLOCKED Installation is blocked by the system.
ERROR_INVALID_APK Invalid update APK.
ERROR_CONFLICT Conflict with the current version of the application.
ERROR_STORAGE Not enough storage space on the device.
ERROR_INCOMPATIBLE Incompatible with the device.
ERROR_APP_NOT_OWNED The application is not purchased.
ERROR_INTERNAL_ERROR Internal error.
ERROR_ABORTED The user declined the update installation.
ERROR_APK_NOT_FOUND APK to start the installation was not found.
ERROR_EXTERNAL_SOURCE_DENIED Starting the update is denied. For example, the first method returned a response that the update is unavailable, but the user calls the second method.
ERROR_ACTIVITY_SEND_INTENT 9901 Error sending intent to open an activity.
ERROR_ACTIVITY_UNKNOWN Unknown error opening an activity.

Error code during the download.

variable bytesDownloaded

long bytesDownloaded;

Number of downloaded bytes.

variable totalBytesToDownload

long totalBytesToDownload;

Total number of bytes to download.

variable installStatus

InstallStatus installStatus;

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

variable installErrorCode

InstallErrorCode installErrorCode;

Error code during the download.