Created
May 11, 2021 10:55
-
-
Save Wottrich/05bf60a32a40f7aebf5558fcbab17d03 to your computer and use it in GitHub Desktop.
InAppUpdate AppUpdatePertinentInfo pt1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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