Skip to content

Instantly share code, notes, and snippets.

@dhruvtaneja
Last active May 27, 2019 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhruvtaneja/d667d8bd689e4752b607b8d03eb2791f to your computer and use it in GitHub Desktop.
Save dhruvtaneja/d667d8bd689e4752b607b8d03eb2791f to your computer and use it in GitHub Desktop.
function that fires up update request flow
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