Created
June 27, 2022 19:38
-
-
Save wajahatkarim3/ad3e6a7ec5636d426bd574eddc21c189 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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