Skip to content

Instantly share code, notes, and snippets.

@qureshiayaz29
Created March 20, 2022 19:02
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 qureshiayaz29/de3ba0b82b7507c8b299a0e0dbd7673d to your computer and use it in GitHub Desktop.
Save qureshiayaz29/de3ba0b82b7507c8b299a0e0dbd7673d to your computer and use it in GitHub Desktop.
val manager = ReviewManagerFactory.create(context)
val request = manager.requestReviewFlow()
request.addOnCompleteListener { request ->
if (request.isSuccessful) {
val reviewInfo = request.result
val flow = manager.launchReviewFlow(this, reviewInfo)
flow.addOnCompleteListener { _ ->
//Continue your application process
}
}
else {
//Handle the error here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment