public class AppReviewImpl extends java.lang.Object implements AppReview
AppReviewImpl.getInstance().userInteractionEvent(applicationContext)Invoke this method to kick of the In-App Review flow, which computes whether to show or not based on the user interaction events
AppReviewImpl.getInstance().launchAppReviewFlow(activity)
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PREF_KEY_TIMES_PROMPTED |
protected static java.lang.String |
PREF_KEY_USER_INTERACTION_COUNT |
protected android.content.SharedPreferences |
preferences |
Modifier and Type | Method and Description |
---|---|
protected boolean |
conditionsMetForShowingReview(android.content.Context context)
Performs the calculation to decide whether to show the in-app review flow
|
static AppReview |
getInstance() |
protected int |
getReviewRequestThreshold()
A minimum value for the review threshold
|
void |
launchAppReviewFlow(android.app.Activity activity)
Request to launch the review flow, once the user has performed a reasonable action.
|
void |
userInteractionEvent(android.content.Context context)
User has interacted with the app in such a way as to update the conditions
to show the app rating window.
|
protected static final java.lang.String PREF_KEY_USER_INTERACTION_COUNT
protected static final java.lang.String PREF_KEY_TIMES_PROMPTED
protected android.content.SharedPreferences preferences
public static AppReview getInstance()
public void userInteractionEvent(android.content.Context context)
AppReview
userInteractionEvent
in interface AppReview
context
- the context, use applicationContextprotected int getReviewRequestThreshold()
protected boolean conditionsMetForShowingReview(android.content.Context context)
public void launchAppReviewFlow(android.app.Activity activity)
AppReview
launchAppReviewFlow
in interface AppReview
activity
- the activity instance