public class AppRater extends Object
| Constructor and Description |
|---|
AppRater() |
| Modifier and Type | Method and Description |
|---|---|
static void |
app_launched(Context context)
Call this method at the end of your OnCreate method to determine whether
to show the rate prompt using the specified or default day, launch count
values and checking if the version is changed or not
|
static void |
app_launched(Context context,
int daysUntilPrompt,
int launchesUntilPrompt)
Call this method at the end of your OnCreate method to determine whether
to show the rate prompt
|
static void |
app_launched(Context context,
int daysUntilPrompt,
int launchesUntilPrompt,
int daysForRemind,
int launchesForRemind)
Call this method at the end of your OnCreate method to determine whether
to show the rate prompt using the specified or default day, launch count
values with additional day and launch parameter for remind me later option
and checking if the version is changed or not
|
static Market |
getMarket()
Get the currently set Market
|
static void |
rateNow(Context context)
Call this method directly to go straight to play store listing for rating
|
static void |
resetData(Context context) |
static void |
setCancelable(boolean cancelable)
sets whether the rating dialog is cancelable or not, default is true.
|
static void |
setDarkTheme()
Sets dialog theme to dark
|
static void |
setDontRemindButtonVisible(boolean isNoButtonVisible)
decides if No thanks button appear in dialog or not
|
static void |
setLightTheme()
Sets dialog theme to light
|
static void |
setMarket(Market market)
Set an alternate Market, defaults to Google Play
|
static void |
setNumDaysForRemindLater(int daysUntilPromt)
sets number of day until rating dialog pops up for next time when remind
me later option is chosen
|
static void |
setNumLaunchesForRemindLater(int launchesUntilPrompt)
sets the number of launches until the rating dialog pops up for next time
when remind me later option is chosen
|
static void |
setVersionCodeCheckEnabled(boolean versionCodeCheck)
Decides if the version code check is active or not
|
static void |
setVersionNameCheckEnabled(boolean versionNameCheck)
Decides if the version name check is active or not
|
static void |
showRateDialog(Context context)
Call this method directly if you want to force a rate prompt, useful for
testing purposes
|
public static void setVersionNameCheckEnabled(boolean versionNameCheck)
versionNameCheck - public static void setVersionCodeCheckEnabled(boolean versionCodeCheck)
versionCodeCheck - public static void setNumDaysForRemindLater(int daysUntilPromt)
daysUntilPromt - public static void setNumLaunchesForRemindLater(int launchesUntilPrompt)
launchesUntilPrompt - public static void setDontRemindButtonVisible(boolean isNoButtonVisible)
isNoButtonVisible - public static void setCancelable(boolean cancelable)
cancelable - public static void app_launched(Context context)
context - public static void app_launched(Context context, int daysUntilPrompt, int launchesUntilPrompt, int daysForRemind, int launchesForRemind)
context - daysUntilPrompt - launchesUntilPrompt - daysForRemind - launchesForRemind - public static void app_launched(Context context, int daysUntilPrompt, int launchesUntilPrompt)
context - daysUntilPrompt - launchesUntilPrompt - public static void showRateDialog(Context context)
context - public static void rateNow(Context context)
context - public static void setMarket(Market market)
market - public static Market getMarket()
public static void setDarkTheme()
public static void setLightTheme()
public static void resetData(Context context)