Skip to content

Instantly share code, notes, and snippets.

@wajahatkarim3
Created June 27, 2022 19:38
Show Gist options
  • Save wajahatkarim3/ad3e6a7ec5636d426bd574eddc21c189 to your computer and use it in GitHub Desktop.
Save wajahatkarim3/ad3e6a7ec5636d426bd574eddc21c189 to your computer and use it in GitHub Desktop.
val request: Task<Review Info?> = reviewManager.requestReviewFlow()
request.addOnCompleteListener { task ->
if (task.isSuccessful) {
// We got the ReviewInfo object
val reviewInfo = task.result
} else {
// There was some problem, log or handle the error code.
@ReviewErrorCode val reviewErrorCode = (task.getException() as TaskException).errorCode
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment