Stay organized with collections
Save and categorize content based on your preferences.
Google.Play.AppUpdate.AppUpdateInfo
Contains information about in-app update availability and installation progress.
Summary
Public functions
|
IsUpdateTypeAllowed(AppUpdateOptions appUpdateOptions)
|
bool
Returns true if an update with the specified options is allowed, false otherwise.
|
ToString()
|
override string
Returns a debug string containing all fields of this class.
|
Properties
AvailableVersionCode
int AvailableVersionCode
Returns the app version code of an available or in-progress update, or an arbitrary value if no update is available.
BytesDownloaded
ulong BytesDownloaded
Returns the number of bytes already downloaded for the update.
ClientVersionStalenessDays
int ClientVersionStalenessDays
Returns the number of days that the GooglePlay Store app on the user's device has known about an available update, or null if update or staleness information is unavailable.
TotalBytesToDownload
ulong TotalBytesToDownload
Returns the total number of bytes to download for the update.
UpdatePriority
int UpdatePriority
Returns the priority for this update, as defined by the developer using the "inAppUpdatePriority" field of the GooglePlay Developer API's edits.track.
Public functions
IsUpdateTypeAllowed
bool IsUpdateTypeAllowed(
AppUpdateOptions appUpdateOptions
)
Returns true if an update with the specified options is allowed, false otherwise.
Details |
Parameters |
appUpdateOptions
|
The type of update to perform.
|
|
ToString
override string ToString()
Returns a debug string containing all fields of this class.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-03-18 UTC.
[null,null,["Last updated 2021-03-18 UTC."],[],[],null,["# Google.Play.AppUpdate.AppUpdateInfo Class Reference\n\nGoogle.Play.AppUpdate.AppUpdateInfo\n===================================\n\nContains information about in-app update availability and installation progress.\n\nSummary\n-------\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppUpdateStatus](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1aec53e4d404eb6664ea520792e6b2767d) | [AppUpdateStatus](/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a2b21b28507548425a6bd61d49d04a08a) Returns update status. |\n| [AvailableVersionCode](#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. |\n| [BytesDownloaded](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1af0180f4b08fc6ca1b2bcfcbf69cdb60b) | `ulong` Returns the number of bytes already downloaded for the update. |\n| [ClientVersionStalenessDays](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1afdaaec3013020ee2dbcc1cdf22182106) | `int` Returns the number of days that the [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/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. |\n| [TotalBytesToDownload](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1abdea6d67cfbeb04cd64c1bef54745aef) | `ulong` Returns the total number of bytes to download for the update. |\n| [UpdateAvailability](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a59326a1f42791578ddbf43f50f6aa302) | [UpdateAvailability](/reference/unity/namespace/Google/Play/AppUpdate#namespaceGoogle_1_1Play_1_1AppUpdate_1a94c4f5c643ea8d219c516a15cda75706) Returns update availability. |\n| [UpdatePriority](#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](/reference/unity/namespace/Google#namespaceGoogle)[Play](/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). |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [IsUpdateTypeAllowed](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a445e172eb7f900ef8c1689cf48b239db)`(`[AppUpdateOptions](/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. |\n| [ToString](#classGoogle_1_1Play_1_1AppUpdate_1_1AppUpdateInfo_1a1b79f6f486457dca58d2ad595e900a00)`()` | `override string` Returns a debug string containing all fields of this class. |\n\nProperties\n----------\n\n### AppUpdateStatus\n\n```c#\nAppUpdateStatus AppUpdateStatus\n``` \nReturns update status. \n\n### AvailableVersionCode\n\n```c#\nint AvailableVersionCode\n``` \nReturns the app version code of an available or in-progress update, or an arbitrary value if no update is available. \n\n### BytesDownloaded\n\n```c#\nulong BytesDownloaded\n``` \nReturns the number of bytes already downloaded for the update. \n\n### ClientVersionStalenessDays\n\n```c#\nint ClientVersionStalenessDays\n``` \nReturns the number of days that the [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/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. \n\n### TotalBytesToDownload\n\n```c#\nulong TotalBytesToDownload\n``` \nReturns the total number of bytes to download for the update. \n\n### UpdateAvailability\n\n```c#\nUpdateAvailability UpdateAvailability\n``` \nReturns update availability. \n\n### UpdatePriority\n\n```c#\nint UpdatePriority\n``` \nReturns the priority for this update, as defined by the developer using the \"inAppUpdatePriority\" field of the [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/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).\n\nPublic functions\n----------------\n\n### IsUpdateTypeAllowed\n\n```c#\nbool IsUpdateTypeAllowed(\n AppUpdateOptions appUpdateOptions\n)\n``` \nReturns true if an update with the specified options is allowed, false otherwise.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------------|--------------------------------| | `appUpdateOptions` | The type of update to perform. | |\n\n### ToString\n\n```c#\noverride string ToString()\n``` \nReturns a debug string containing all fields of this class."]]