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
lateinit var manager: ReviewManager | |
var reviewInfo: ReviewInfo? = null | |
// Call this method asap, for example in onCreate() | |
private fun initReviews() { | |
manager = ReviewManagerFactory.create(this) | |
manager.requestReviewFlow().addOnCompleteListener { request -> | |
if (request.isSuccessful) { | |
reviewInfo = request.result | |
} else { |