Created
March 20, 2022 19:02
-
-
Save qureshiayaz29/de3ba0b82b7507c8b299a0e0dbd7673d to your computer and use it in GitHub Desktop.
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
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