Skip to content

Instantly share code, notes, and snippets.

@Wottrich
Created May 11, 2021 10:55
Show Gist options
  • Save Wottrich/05bf60a32a40f7aebf5558fcbab17d03 to your computer and use it in GitHub Desktop.
Save Wottrich/05bf60a32a40f7aebf5558fcbab17d03 to your computer and use it in GitHub Desktop.
InAppUpdate AppUpdatePertinentInfo pt1
class AppUpdatePertinentInfo(private val appUpdateInfo: AppUpdateInfo) {
val updateAvailableValue: Int
get() = UpdateAvailability.UPDATE_AVAILABLE
val installStatusDownloadedValue: Int
get() = InstallStatus.DOWNLOADED
val developerTriggeredUpdateInProgressValue: Int
get() = UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS
fun updateAvailability(): Int =
appUpdateInfo.updateAvailability()
fun installStatus(): Int =
appUpdateInfo.installStatus()
fun clientVersionStalenessDays(): Int? =
appUpdateInfo.clientVersionStalenessDays()
fun updatePriority(): Int =
appUpdateInfo.updatePriority()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment