Interface FeedbackListener
AppReview when the platform has no native review
prompt (or when the user gave a low rating). Register an implementation via
AppReview.setFeedbackListener(FeedbackListener) to collect feedback through your own
channel (e.g. a support backend) instead of the built in e-mail composer.-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked with the free text the user typed in the built in feedback composer, whenAppReviewis left to handle the low rating flow and a support e-mail address was configured.booleanlowRating(int rating) Invoked when the user picked a rating below the configured high rating threshold (seeAppReview.setHighRatingThreshold(int)) and therefore should be routed to a private feedback flow rather than the public store.
-
Method Details
-
lowRating
boolean lowRating(int rating) Invoked when the user picked a rating below the configured high rating threshold (see
AppReview.setHighRatingThreshold(int)) and therefore should be routed to a private feedback flow rather than the public store.Returning
truesignals that the listener is presenting its own feedback experience, soAppReviewwill not show the built in feedback composer. ReturningfalseletsAppReviewfall back to its default behaviour (e-mail to the configured support address, if any).Parameters
rating: the star value the user selected, from 1 to the rating widget's maximum (5 by default).
Returns
true if the listener handled the low rating itself.
-
feedback
Invoked with the free text the user typed in the built in feedback composer, when
AppReviewis left to handle the low rating flow and a support e-mail address was configured. Implement this to intercept the text and deliver it yourself; it is not called whenlowRating(int)already returnedtrue.Parameters
-
rating: the star value the user selected. -
feedback: the free text entered by the user, never null but possibly empty.
-
-