-
public class ReviewPromptManagerManages review prompt presentation using Google Play In-App Review API. Tracks prompt frequency via SharedPreferences to enforce rate limits, matching the iOS ReviewPromptManager's UserDefaults-based tracking.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ReviewPromptManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleancanShowReviewPrompt(Context context)Check whether a review prompt can be shown based on rate limits. final UnittriggerReview(Context context)Trigger the Google Play In-App Review flow. final UnittriggerTwoStepReview(Activity activity, String appName)Two-step review prompt: show dialog first, then trigger native review on positive response. -
-
Method Detail
-
canShowReviewPrompt
final Boolean canShowReviewPrompt(Context context)
Check whether a review prompt can be shown based on rate limits. Enforces max 3 prompts per year and minimum 90 days between prompts.
-
triggerReview
final Unit triggerReview(Context context)
Trigger the Google Play In-App Review flow. Respects rate limits and records prompt display.
-
triggerTwoStepReview
final Unit triggerTwoStepReview(Activity activity, String appName)
Two-step review prompt: show dialog first, then trigger native review on positive response. Respects rate limits and records prompt display.
-
-
-
-