Package 

Object ReviewPromptManager


  • 
    public class ReviewPromptManager
    
                        

    Manages 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.

    • Method Summary

      Modifier and Type Method Description
      final Boolean canShowReviewPrompt(Context context) Check whether a review prompt can be shown based on rate limits.
      final Unit triggerReview(Context context) Trigger the Google Play In-App Review flow.
      final Unit triggerTwoStepReview(Activity activity, String appName) Two-step review prompt: show dialog first, then trigger native review on positive response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.