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}
The status of the update installation if the user is currently installing the update.
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 download.

Public Attributes

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

enum InstallStatus

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

The status of the update installation if the user is currently installing the update.

enum InstallErrorCode

Enumerator Value Description
ERROR_UNKNOWN 4001 Unknown error.
ERROR_DOWNLOAD Download error.
ERROR_BLOCKED Installation is blocked by the system.
ERROR_INVALID_APK Invalid update APK.
ERROR_CONFLICT Conflict with the current app version.
ERROR_STORAGE Not enough storage on the device.
ERROR_INCOMPATIBLE Incompatible with the device.
ERROR_APP_NOT_OWNED The app was not purchased.
ERROR_INTERNAL_ERROR Internal error.
ERROR_ABORTED The user declined the update installation.
ERROR_APK_NOT_FOUND APK for starting installation not found.
ERROR_EXTERNAL_SOURCE_DENIED Update launch is prohibited. 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 the activity.
ERROR_ACTIVITY_UNKNOWN Unknown error opening the activity.

Error code during download.

variable bytesDownloaded

long bytesDownloaded;

Number of bytes downloaded.

variable totalBytesToDownload

long totalBytesToDownload;

Total number of bytes to download.

variable installStatus

InstallStatus installStatus;

The status of the update installation if the user is currently installing the update.

variable installErrorCode

InstallErrorCode installErrorCode;

Error code during download.