# Google.Play.AppUpdate

## Summary

| ### Enumerations ||
|---|---|
| `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205{ https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a70a47cae4eb221930f2663fd244369ea = 0, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a962727ad699014b787a946e9798a020d = 1, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a3cabc605300c5d86602e943fcf77672b = 2, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205ab87c276b082f418b1147be3dc9cd793c = 3, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a01250a9096d971b78be0906356254887 = 4, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a5e6b1a59e0384c9353c54f2c0f35ead8 = 5, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a765ffc0c38488bf5bb34a63f3fb360fb = 6, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a7d1dcf3678b451ee6c13b6977da4fbbd = 7, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a63437267df7d88458b8e8618f8d7ebbe = 8, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a0910fe65d2332b01793b42655116e372 = 9, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a1d062b8ec30e308910ee1e8de2449959 = 10, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205aa1ba5d1d4a5af44114eab1d55739ee5d = 11, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a89ec73170d8693bcc1022d79c3b45556 = 12, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2efd4be14a91cfac4e689974efaad205a6c921459f58141dac5a90d9e34d08f4c = 13 }` | enumIn-app update API errors. |
| `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08a{ https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aa88183b946cc5f0e8c96b2e66e1c74a7e = 0, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aa2d13df6f8b5e4c5af9f87e0dc39df69d = 1, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aac7e71badf20a04f36d11be557ceb7a5b = 2, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aaa6a04307fd90d0c2821b45125e6a0a25 = 3, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aa2763f33c904a183bd0ef06f9c4fb4403 = 4, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aa98dd43dfae05b11befe1f140e0ec787a = 5, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aad7c8c85bf79bbe1b7188497c32c3b0ca = 6, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08aa0e22fe7d45f8e5632a4abf369b24e29c = 7 }` | enumIn-app update API status. |
| `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a084d0f0dd5b3e0dd3526be6eebc629e5{ https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a084d0f0dd5b3e0dd3526be6eebc629e5a13b303a6c0d90897b5375ce901acc445 = 0, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a084d0f0dd5b3e0dd3526be6eebc629e5a43f6615bbb2c40a5306ff804094420b1 = 1 }` | enumMethods for performing the in-app update flow. |
| `https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706{ https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706a88183b946cc5f0e8c96b2e66e1c74a7e = 0, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706a2073e216f0959599e628c47df23467ef = 1, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706a4ca50bd5e1da4e7eb295d50a191aa4ec = 2, https://developer.android.com/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706ae882c4d1425c01f5aee271a096b40c90 = 3 }` | enumAvailability information for an in-app update. |

| ### Classes ||
|---|---|
| [Google.Play.AppUpdate.AppUpdateInfo](https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateInfo) | Contains information about in-app update availability and installation progress. |
| [Google.Play.AppUpdate.AppUpdateManager](https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateManager) | Manages operations for requesting and launching an in-app update flow. |
| [Google.Play.AppUpdate.AppUpdateOptions](https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateOptions) | Options used to configure an in-app update, including [AppUpdateType](https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateOptions#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateOptions_1aed56d6ee99fe283a738109290a038fb5). |
| [Google.Play.AppUpdate.AppUpdateRequest](https://developer.android.com/reference/unity/class/Google/Play/AppUpdate/AppUpdateRequest) | A [CustomYieldInstruction](https://docs.unity3d.com/ScriptReference/CustomYieldInstruction.html) used to monitor an ongoing in-app update. |

## Enumerations

### AppUpdateErrorCode

```c#
 AppUpdateErrorCode
```
In-app update API errors.

| Properties ||
|---|---|
| `ErrorApiNotAvailable` | The API isn't available on this device. |
| `ErrorAppNotOwned` | The app isn't owned by any user on this device. An app is "owned" if it has been acquired from the [Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Store. |
| `ErrorDownloadNotPresent` | The update hasn't been fully downloaded yet. |
| `ErrorInternalError` | An internal error happened in the [Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Store. |
| `ErrorInvalidRequest` | The request that was sent by the app is malformed. |
| `ErrorPlayStoreNotFound` | The [Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Store app is either not installed or not the official version. |
| `ErrorUnknown` | An unknown error has occurred. |
| `ErrorUpdateFailed` | The in-app update failed, for example due to an interrupted network connection. |
| `ErrorUpdateInProgress` | The update is already in progress and there is no UI flow to resume. |
| `ErrorUpdateNotAllowed` | The update isn't allowed due to the current device state, for example low battery or low disk space. |
| `ErrorUpdateUnavailable` | The update is unavailable to this user or device. |
| `ErrorUserCanceled` | The update was cancelled by the user. |
| `NoError` | No error has occurred. |
| `NoErrorPartiallyAllowed` | No error occurred; however, some update types are allowed and others are disallowed. |

### AppUpdateStatus

```c#
 AppUpdateStatus
```
In-app update API status.

| Properties ||
|---|---|
| `Canceled` | An update has been canceled. |
| `Downloaded` | An update has been fully downloaded. |
| `Downloading` | Download of an update is in progress. |
| `Failed` | An update has failed. |
| `Installed` | An update has been successfully installed. |
| `Installing` | An update is being installed. |
| `Pending` | Download of an update is pending and will be processed soon. |
| `Unknown` | The update status is unknown. |

### AppUpdateType

```c#
 AppUpdateType
```
Methods for performing the in-app update flow.

Note: regardless of the method, the app needs to be restarted to install an update.

| Properties ||
|---|---|
| `Flexible` | Flexible update flow, where the user can still use the app while the update is downloaded. |
| `Immediate` | Immediate update flow, where the user is unable to interact with the app while the update is downloaded and installed. |

### UpdateAvailability

```c#
 UpdateAvailability
```
Availability information for an in-app update.

| Properties ||
|---|---|
| `DeveloperTriggeredUpdateInProgress` | An update has been triggered by the developer and is in progress. |
| `Unknown` | Update availability is unknown. |
| `UpdateAvailable` | An update is available. |
| `UpdateNotAvailable` | No updates are available. |