# Google.Play.AppUpdate.AppUpdateInfo

Contains information about in-app update availability and installation progress.

## Summary

| ### Properties ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1aec53e4d404eb6664ea520792e6b2767d` | `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08a` Returns update status. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a6e65f56c7395b15dfb3fd0c75e803697` | `int` Returns the app version code of an available or in-progress update, or an arbitrary value if no update is available. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1af0180f4b08fc6ca1b2bcfcbf69cdb60b` | `ulong` Returns the number of bytes already downloaded for the update. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1afdaaec3013020ee2dbcc1cdf22182106` | `int` Returns the number of days that the [Google](https://developer.android.com/reference/unity/namespace/Google#namespaceGoogle)[Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Store app on the user's device has known about an available update, or null if update or staleness information is unavailable. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1abdea6d67cfbeb04cd64c1bef54745aef` | `ulong` Returns the total number of bytes to download for the update. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a59326a1f42791578ddbf43f50f6aa302` | `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706` Returns update availability. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a9d77b8e477d2c685f022d98e85b2fb07` | `int` Returns the priority for this update, as defined by the developer using the "inAppUpdatePriority" field of the [Google](https://developer.android.com/reference/unity/namespace/Google#namespaceGoogle)[Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Developer API's [edits.track](https://developers.google.com/android-publisher/api-ref/rest/v3/edits.tracks). |

| ### Public functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a445e172eb7f900ef8c1689cf48b239db(https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateOptions#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateOptions appUpdateOptions)` | `bool` Returns true if an update with the specified options is allowed, false otherwise. |
| `https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a1b79f6f486457dca58d2ad595e900a00()` | `override string` Returns a debug string containing all fields of this class. |

## Properties

### AppUpdateStatus

```c#
AppUpdateStatus AppUpdateStatus
```
Returns update status.

### AvailableVersionCode

```c#
int AvailableVersionCode
```
Returns the app version code of an available or in-progress update, or an arbitrary value if no update is available.

### BytesDownloaded

```c#
ulong BytesDownloaded
```
Returns the number of bytes already downloaded for the update.

### ClientVersionStalenessDays

```c#
int ClientVersionStalenessDays
```
Returns the number of days that the [Google](https://developer.android.com/reference/unity/namespace/Google#namespaceGoogle)[Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Store app on the user's device has known about an available update, or null if update or staleness information is unavailable.

### TotalBytesToDownload

```c#
ulong TotalBytesToDownload
```
Returns the total number of bytes to download for the update.

### UpdateAvailability

```c#
UpdateAvailability UpdateAvailability
```
Returns update availability.

### UpdatePriority

```c#
int UpdatePriority
```
Returns the priority for this update, as defined by the developer using the "inAppUpdatePriority" field of the [Google](https://developer.android.com/reference/unity/namespace/Google#namespaceGoogle)[Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Developer API's [edits.track](https://developers.google.com/android-publisher/api-ref/rest/v3/edits.tracks).

## Public functions

### IsUpdateTypeAllowed

```c#
bool IsUpdateTypeAllowed(
  AppUpdateOptions appUpdateOptions
)
```
Returns true if an update with the specified options is allowed, false otherwise.

<br />

Details Parameters `appUpdateOptions` The type of update to perform.

### ToString

```c#
override string ToString()
```
Returns a debug string containing all fields of this class.