Skip to content

Instantly share code, notes, and snippets.

View firecatmusic's full-sized avatar
💤

Ade Fajar firecatmusic

💤
View GitHub Profile
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 {