Stay organized with collections
Save and categorize content based on your preferences.
ReviewManager
public
interface
ReviewManager
com.google.android.play.core.review.ReviewManager
|
Known indirect subclasses
|
Manages operations for requesting and launching the review flow.
Summary
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ReviewManager\n\nSummary: [Methods](#pubmethods) \n\nReviewManager\n=============\n\n\n`\npublic\n\n\ninterface\nReviewManager\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| com.google.android.play.core.review.ReviewManager |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [FakeReviewManager](../../../../../../../reference/com/google/android/play/core/review/testing/FakeReviewManager.html) |------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | [FakeReviewManager](../../../../../../../reference/com/google/android/play/core/review/testing/FakeReviewManager.html) | A fake implementation of the [ReviewManager](../../../../../../../reference/com/google/android/play/core/review/ReviewManager.html). | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nManages operations for requesting and launching the review flow.\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[Void](https://developer.android.com/reference/java/lang/Void.html)`\u003e` | ` `[launchReviewFlow](../../../../../../../reference/com/google/android/play/core/review/ReviewManager.html#launchReviewFlow(android.app.Activity,%20com.google.android.play.core.review.ReviewInfo))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity, `[ReviewInfo](../../../../../../../reference/com/google/android/play/core/review/ReviewInfo.html)` reviewInfo) ` Launches and displays the review flow to the user. |\n| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[ReviewInfo](../../../../../../../reference/com/google/android/play/core/review/ReviewInfo.html)`\u003e` | ` `[requestReviewFlow](../../../../../../../reference/com/google/android/play/core/review/ReviewManager.html#requestReviewFlow())`() ` Retrieves all the needed information to launch the review flow. |\n\nPublic methods\n--------------\n\n### launchReviewFlow\n\n```\npublic abstract Task\u003cVoid\u003e launchReviewFlow (Activity activity, \n ReviewInfo reviewInfo)\n```\n\nLaunches and displays the review flow to the user.\n\nNote: In some circumstances the review flow will not be shown to the user, e.g. they have\nalready seen it recently, so do not assume that calling this method will always display the\nreview dialog.\n\nApp should resume when the returned task is completed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------|\n| `activity` | `Activity` \u003cbr /\u003e |\n| `reviewInfo` | `ReviewInfo` \u003cbr /\u003e |\n\n| Returns ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[Void](https://developer.android.com/reference/java/lang/Void.html)`\u003e` | \u003cbr /\u003e |\n\n### requestReviewFlow\n\n```\npublic abstract Task\u003cReviewInfo\u003e requestReviewFlow ()\n```\n\nRetrieves all the needed information to launch the review flow.\n\nNeeds to be called before [launchReviewFlow(Activity, ReviewInfo)](../../../../../../../reference/com/google/android/play/core/review/ReviewManager.html#launchReviewFlow(android.app.Activity,%20com.google.android.play.core.review.ReviewInfo)) to obtain an\n[ReviewInfo](../../../../../../../reference/com/google/android/play/core/review/ReviewInfo.html) object which is used to launch the review flow.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[ReviewInfo](../../../../../../../reference/com/google/android/play/core/review/ReviewInfo.html)`\u003e` | \u003cbr /\u003e |"]]