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 currently installing an 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. |
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 currently installing an update.
enum InstallErrorCode
| Enumerator | Value | Description |
|---|---|---|
| ERROR_UNKNOWN | 4001 | Unknown error. |
| ERROR_DOWNLOAD | Download error. | |
| ERROR_BLOCKED | Installation blocked by the system. | |
| ERROR_INVALID_APK | Invalid update APK. | |
| ERROR_CONFLICT | Conflict with the current app version. | |
| ERROR_STORAGE | Insufficient storage on the device. | |
| ERROR_INCOMPATIBLE | Incompatible with the device. | |
| ERROR_APP_NOT_OWNED | App not purchased. | |
| ERROR_INTERNAL_ERROR | Internal error. | |
| ERROR_ABORTED | User cancelled the update installation. | |
| ERROR_APK_NOT_FOUND | APK to start installation not found. | |
| ERROR_EXTERNAL_SOURCE_DENIED | Update start denied. For example, the first method returned a response that the update is not available, but the user calls the second method. | |
| ERROR_ACTIVITY_SEND_INTENT | 9901 | Error sending intent to open activity. |
| ERROR_ACTIVITY_UNKNOWN | Unknown activity opening error. |
Error code during download.
Public Attributes
| Name | |
|---|---|
| long | bytesDownloaded — Number of bytes downloaded. |
| long | totalBytesToDownload — Total number of bytes to download. |
| InstallStatus | installStatus — Update installation status if the user is currently installing an update. |
| InstallErrorCode | installErrorCode — 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;
Update installation status if the user is currently installing an update.
variable installErrorCode
InstallErrorCode installErrorCode;
Error code during download.
- Страницы
- RuStore.AppUpdate.AppUpdateInfo.en
- RuStore.AppUpdate.AppUpdateInfo
- RuStore.AppUpdate.IInstallStateUpdateListener.en
- RuStore.AppUpdate.IInstallStateUpdateListener
- RuStore.AppUpdate.InstallState.en
- RuStore.AppUpdate.InstallState
- RuStore.AppUpdate.Internal.AppUpdateErrorListener.en
- RuStore.AppUpdate.Internal.AppUpdateErrorListener
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener.en
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener
- RuStore.AppUpdate.Internal.InstallStateUpdateListener.en
- RuStore.AppUpdate.Internal.InstallStateUpdateListener
- RuStore.AppUpdate.Internal.UpdateFlowResultListener.en
- RuStore.AppUpdate.Internal.UpdateFlowResultListener
- RuStore.AppUpdate.RuStoreAppUpdateManager.en
- RuStore.AppUpdate.RuStoreAppUpdateManager
- RuStore.AppUpdate.AppUpdateInfo.en
- RuStore.AppUpdate.AppUpdateInfo
- RuStore.AppUpdate.IInstallStateUpdateListener.en
- RuStore.AppUpdate.IInstallStateUpdateListener
- RuStore.AppUpdate.InstallState.en
- RuStore.AppUpdate.InstallState
- RuStore.AppUpdate.Internal.AppUpdateErrorListener.en
- RuStore.AppUpdate.Internal.AppUpdateErrorListener
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener.en
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener
- RuStore.AppUpdate.Internal.InstallStateUpdateListener.en
- RuStore.AppUpdate.Internal.InstallStateUpdateListener
- RuStore.AppUpdate.Internal.UpdateFlowResultListener.en
- RuStore.AppUpdate.Internal.UpdateFlowResultListener
- RuStore.AppUpdate.RuStoreAppUpdateManager.en
- RuStore.AppUpdate.RuStoreAppUpdateManager