onUpdateStatus
callback and passes an UpdateStatusModel
object as an argument. The object includes the following properties:
Property | Type | Description |
---|---|---|
isUpdateAvailable | boolean | Whether an update is available. |
versionName | string | The name of the new version, if available. |
versionCode | int | The code of the new version, if available. |
downloadUrl | string | The download URL for the new version. This link is valid for 30 minutes. |
type | string | The type of update, SOFT or HARD . |
message | string | A message to display to the player. |
fallbackUrl | string | A fallback URL for players to download the APK manually. Used in case of internal errors or update installation failures. |
fallbackMessage | string | A fallback message to display to the player. |
packageName | string | The package name of the updated version. |