Package com.zendesk.sdk.rating.impl
Class MetricsRateMyAppRule
- java.lang.Object
-
- com.zendesk.sdk.rating.impl.MetricsRateMyAppRule
-
- All Implemented Interfaces:
- RateMyAppRule
public class MetricsRateMyAppRule extends java.lang.Object implements RateMyAppRule
Determines if the preferences should allow theRateMyAppDialog
to showThis checks the following conditions, all must be met.
RateMyAppStorage.isNumberOfLaunchesMet()
RateMyAppStorage.isLaunchTimeMet()
- NOT
RateMyAppStorage.isRatedForCurrentVersion()
- NOT
RateMyAppStorage.isDontShowAgain()
This method is only concerned with the parameters that we store such as number of launches, time elapsed, don't show again or already rated. Other factors can cause the dialog not to show such as if it is disabled by the server or if there is no network available also.
It also logs the state of these at a debug level.
-
-
Constructor Summary
Constructors Constructor and Description MetricsRateMyAppRule(Context context)
Creates a rule based on the rate my app metrics
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
permitsShowOfDialog()
Checks if this rule permits the showing of the dialogue, false if it does not
-
-
-
Method Detail
-
permitsShowOfDialog
public boolean permitsShowOfDialog()
Description copied from interface:RateMyAppRule
Checks if this rule permits the showing of the dialogue, false if it does not- Specified by:
permitsShowOfDialog
in interfaceRateMyAppRule
- Returns:
- true if this rule permits the showing of the dialogue, false if it does not
-
-