You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* setStoreType(APPLE, long) (Apple App Store, long - your application ID),
116
116
* setStoreType(String...) (Any other store/stores, String... - an URI or array of URIs to your app) and
117
117
* setStoreType(Intent...) (Any custom intent/intents, Intent... - an intent or array of intents) */
118
-
.setInstallDays((byte) 0) // default is 10, 0 means install day, 10 means app is launched 10 or more days later than installation
118
+
.setTimeToWait(Time.DAY, (short) 0) // default is 10 days, 0 means install millisecond, 10 means app is launched 10 or more time units later than installation
119
119
.setLaunchTimes((byte) 3) // default is 10, 3 means app is launched 3 or more times
120
-
.setRemindInterval((byte) 1) // default is 1, 1 means app is launched 1 or more days after neutral button clicked
121
-
// Since Release 1.2.1: .setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
120
+
.setRemindTimeToWait(Time.DAY, (short) 2) // default is 1 day, 1 means app is launched 1 or more time units after neutral button clicked
121
+
.setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
122
122
.setSelectedAppLaunches((byte) 1) // default is 1, 1 means each launch, 2 means every 2nd launch, 3 means every 3rd launch, etc
123
123
.setShowLaterButton(true) // default is true, true means to show the Neutral button ("Remind me later").
124
124
.set365DayPeriodMaxNumberDialogLaunchTimes((short) 3) // default is unlimited, 3 means 3 or less occurrences of the display of the Rate Dialog within a 365-day period
125
-
// Since Release 1.2.1: .setVersionCodeCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version code is installed
126
-
// Since Release 1.2.1: .setVersionNameCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version name is installed
125
+
.setVersionCodeCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version code is installed
126
+
.setVersionNameCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version name is installed
127
127
.setDebug(false) // default is false, true is for development only, true ensures that the Rate Dialog will be shown each time the app is launched
128
128
.setOnClickButtonListener(which ->Log.d(this.getLocalClassName(), Byte.toString(which))) // Java 8+, change for Java 7-
1. Google Play launches when you press the positive button. Change via `AppRate#setStoreType(int)`, `AppRate#setStoreType(int, long)`, `AppRate#setStoreType(String...)` or `AppRate#setStoreType(Intent...)`.
144
-
2. App is launched 10 or more days later than installation. Change via `AppRate#setInstallDays(byte)`.
144
+
2. App is launched 10 or more days later than installation. Change via `AppRate#setTimeToWait(long, short)` or `AppRate#setInstallDays(byte)`.
145
145
3. App is launched 10 or more times. Change via `AppRate#setLaunchTimes(byte)`.
146
-
4. App is launched 1 or more days after neutral button clicked. Change via `AppRate#setRemindInterval(byte)`.
147
-
Since Release 1.2.1: 5. App is launched 0 or more times after neutral button clicked. Change via `AppRate#setRemindLaunchesNumber(byte)`.
146
+
4. App is launched 1 or more days after neutral button clicked. Change via `AppRate#setRemindTimeToWait(long, short)` or `AppRate#setRemindInterval(byte)`.
147
+
5. App is launched 0 or more times after neutral button clicked. Change via `AppRate#setRemindLaunchesNumber(byte)`.
148
148
6. Each launch (the condition is satisfied if appLaunches % `param` == 0). Change via `AppRate#setSelectedAppLaunches(byte)`.
149
149
7. App shows the Neutral button ("Remind me later"). Change via `setShowLaterButton(boolean)`.
150
150
8. Unlimited occurrences of the display of the Rate Dialog within a 365-day period. Change via `AppRate#set365DayPeriodMaxNumberDialogLaunchTimes(short)`.
151
-
Since Release 1.2.1: 9. Don't re-enable the Rate Dialog if a new version of app with different version code is installed. Change via `AppRate#setVersionCodeCheck(boolean)`.
152
-
Since Release 1.2.1: 10. Don't re-enable the Rate Dialog if a new version of app with different version name is installed. Change via `AppRate#setVersionNameCheck(boolean)`.
151
+
9. Don't re-enable the Rate Dialog if a new version of app with different version code is installed. Change via `AppRate#setVersionCodeCheck(boolean)`.
152
+
10. Don't re-enable the Rate Dialog if a new version of app with different version name is installed. Change via `AppRate#setVersionNameCheck(boolean)`.
153
153
11. Setting `AppRate#setDebug(boolean)` to `true` ensures that the Rate Dialog will be shown each time the app is launched. **This feature is for development only!**.
154
154
12. There is no default callback when the button of Rate Dialog is pressed. Change via `AppRate.with(this).setOnClickButtonListener(OnClickButtonListener)`.
0 commit comments