# UAppUpdateInfo Class Reference

# UAppUpdateInfo

`#include <AppUpdateInfo.h>`

This class represents the information about the app update.

## Summary

### Inheritance

Inherits from: UObject

|                                                                                                                                                                                                                                                                              ### Public functions                                                                                                                                                                                                                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BeginDestroy](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1ac33cbe71174ce0c1a3e2accb36d53898)`() override`                                                                                                                                                               | `virtual void` Part of UObject interface.                                                                                                                                                                                       |
| [ClearAppUpdateInfo](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1a45af9beec6c879c965ef27216ba79bf6)`()`                                                                                                                                                                  | `void` Clears the native app update info object.                                                                                                                                                                                |
| [GetAvailability](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1a644c4a22d613e6224661dca6cf765c54)`()`                                                                                                                                                                     | [EAppUpdateAvailability](https://developer.android.com/reference/unreal-engine/play/core/group/play-in-app-updates#group___play_in_app_updates_1ga3b474c632ea8ed9f0b94b7970a3e088b) Returns the availability of the app update. |
| [GetAvailableVersionCode](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1af71717047a00e956bbed381a6421daa5)`()`                                                                                                                                                             | `int32` Returns the available version code of the app update.                                                                                                                                                                   |
| [GetBytesDownloaded](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1abd937b7a739396d2f3b966cae0817e7b)`()`                                                                                                                                                                  | `int64` Returns the number of bytes downloaded so far.                                                                                                                                                                          |
| [GetClientVersionStalenessDays](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1aa9c11c25d6e161828f53ecc0b2333ebb)`()`                                                                                                                                                       | `int32` Returns the number of days since the client version was last updated.                                                                                                                                                   |
| [GetPriority](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1aa7ae8fdaf312a5711c98fb5bdd5dcfe6)`()`                                                                                                                                                                         | `int32` Returns the priority of the app update.                                                                                                                                                                                 |
| [GetStatus](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1a4fc60cb7b360093b0608e5fcd65294cb)`()`                                                                                                                                                                           | [EAppUpdateStatus](https://developer.android.com/reference/unreal-engine/play/core/group/play-in-app-updates#group___play_in_app_updates_1gac7a80bab2855a9da66be9657e94c5ba0) Returns the status of the app update.             |
| [GetTotalBytesToDownload](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1a40b50d4af11e28c121b0874b11c85479)`()`                                                                                                                                                             | `int64` Returns the total number of bytes to download.                                                                                                                                                                          |
| [IsUpdateTypeAllowed](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-info#class_u_app_update_info_1a750035f8c52a65da070c765269244d14)`(`[UAppUpdateOptions](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-options#class_u_app_update_options)` *InAppUpdateOptions)` | `bool` Returns whether the update type is allowed.                                                                                                                                                                              |

## Public functions

### BeginDestroy

```text
virtual void BeginDestroy() override
```  
Part of UObject interface.

Called when the object is marked for deletion by MarkPendingKill.  

### ClearAppUpdateInfo

```text
void ClearAppUpdateInfo()
```  
Clears the native app update info object.  

### GetAvailability

```text
EAppUpdateAvailability GetAvailability()
```  
Returns the availability of the app update.  

### GetAvailableVersionCode

```text
int32 GetAvailableVersionCode()
```  
Returns the available version code of the app update.  

### GetBytesDownloaded

```gdscript
int64 GetBytesDownloaded()
```  
Returns the number of bytes downloaded so far.  

### GetClientVersionStalenessDays

```text
int32 GetClientVersionStalenessDays()
```  
Returns the number of days since the client version was last updated.  

### GetPriority

```text
int32 GetPriority()
```  
Returns the priority of the app update.  

### GetStatus

```text
EAppUpdateStatus GetStatus()
```  
Returns the status of the app update.  

### GetTotalBytesToDownload

```gdscript
int64 GetTotalBytesToDownload()
```  
Returns the total number of bytes to download.  

### IsUpdateTypeAllowed

```scdoc
bool IsUpdateTypeAllowed(
  UAppUpdateOptions *InAppUpdateOptions
)
```  
Returns whether the update type is allowed.

<br />

|                                                                                                                                                                                                                     Details                                                                                                                                                                                                                     ||
|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Parameters | |----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `InAppUpdateOptions` | The[UAppUpdateOptions](https://developer.android.com/reference/unreal-engine/play/core/class/u-app-update-options#class_u_app_update_options)object which contains the type of update. | |