ReviewManager

public interface ReviewManager

com.google.android.play.core.review.ReviewManager


Manages operations for requesting and launching the review flow.

Summary

Public methods

abstract Task<Void> launchReviewFlow(Activity activity, ReviewInfo reviewInfo)

Launches and displays the review flow to the user.

abstract Task<ReviewInfo> requestReviewFlow()

Retrieves all the needed information to launch the review flow.

Public methods

launchReviewFlow

public abstract Task<Void> launchReviewFlow (Activity activity, 
                ReviewInfo reviewInfo)

Launches and displays the review flow to the user.

Note: In some circumstances the review flow will not be shown to the user, e.g. they have already seen it recently, so do not assume that calling this method will always display the review dialog.

App should resume when the returned task is completed.

Parameters
activity Activity

reviewInfo ReviewInfo

Returns
Task<Void>

requestReviewFlow

public abstract Task<ReviewInfo> requestReviewFlow ()

Retrieves all the needed information to launch the review flow.

Needs to be called before launchReviewFlow(Activity, ReviewInfo) to obtain an ReviewInfo object which is used to launch the review flow.

Returns
Task<ReviewInfo>