Last active
May 27, 2019 16:49
-
-
Save dhruvtaneja/d667d8bd689e4752b607b8d03eb2791f to your computer and use it in GitHub Desktop.
function that fires up update request flow
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
private fun requestUpdate(appUpdateInfo: AppUpdateInfo?) { | |
appUpdateManager.startUpdateFlowForResult( | |
appUpdateInfo, | |
AppUpdateType.FLEXIBLE, // HERE specify the type of update flow you want | |
this, // the instance of an activity | |
REQUEST_CODE_FLEXIBLE_UPDATE | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment