internal static void RequestRating(RatingDialogContent content, RatingRequestSettings settings)
 {
     AndroidUtil.CallJavaStaticMethod(ANDROID_JAVA_UTILITY_CLASS, "RequestReview",
                                      content.Title,
                                      content.Message,
                                      content.LowRatingMessage,
                                      content.HighRatingMessage,
                                      content.PostponeButtonText,
                                      content.RefuseButtonText,
                                      content.CancelButtonText,
                                      content.FeedbackButtonText,
                                      content.RateButtonText,
                                      settings.MinimumAcceptedStars.ToString()
                                      );
 }
Пример #2
0
        public void RequestRatingLocalized()
        {
            if (!StoreReview.CanRequestRating())
            {
                NativeUI.Alert("Alert", "The rating popup could not be shown because it was disabled or the display constraints are not satisfied.");
                return;
            }

            // For demo purpose, we translated the default content into French using Google Translate!
            var localized = new RatingDialogContent(
                "Évaluation " + RatingDialogContent.PRODUCT_NAME_PLACEHOLDER,
                "Comment évalueriez-vous " + RatingDialogContent.PRODUCT_NAME_PLACEHOLDER + "?",
                "C'est mauvais. Souhaitez-vous nous donner quelques commentaires à la place?",
                "Impressionnant! Faisons le!",
                "Pas maintenant",
                "Non",
                "Évaluez maintenant!",
                "Annuler",
                "Réaction"
                );


            StoreReview.RequestRating(localized);
        }