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
Copy file name to clipboardExpand all lines: README.md
+33-10Lines changed: 33 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
AndroidRate
2
2
============
3
3
4
-
AndroidRate is a library to help you promote your android app by prompting users to rate the app after using it for a few days. Original project [Android-Rate](https://github.com/hotchemi/Android-Rate) (The MIT License (MIT)) was developed by Shintaro Katafuchi.
4
+
AndroidRate is a library to help you promote your android app by prompting users to rate the app after using it for a few days. Project based on [Android-Rate](https://github.com/hotchemi/Android-Rate) by Shintaro Katafuchi.
.setInstallDays((byte) 0) // default 10, 0 means install day
33
+
.setLaunchTimes((byte) 3) // default 10
34
+
.monitor();
35
+
36
+
AppRate.showRateDialogIfMeetsConditions(this);
37
+
}
38
+
```
39
+
23
40
### Configuration
24
41
25
42
AndroidRate provides methods to configure its behavior.
@@ -172,7 +189,7 @@ AppRate.with(this).setStoreType(StoreType.BLACKBERRY, long); // BlackBerry World
172
189
173
190
#### Chinese app stores
174
191
175
-
The first Chinese app store found on the user device will be used. The Library doesn't check the availability of your application on the app store.
192
+
The first Chinese app store found on the user device will be used, if first fails, second will be used, etc. The Library doesn't check the availability of your application on the app store.
176
193
177
194
```java
178
195
AppRate.with(this).setStoreType(StoreType.CHINESESTORES); // 19 chinese app stores: 腾讯应用宝, 360手机助手,
@@ -183,20 +200,20 @@ AppRate.with(this).setStoreType(StoreType.CHINESESTORES); // 19 chinese app stor
183
200
#### Other store
184
201
185
202
```java
186
-
AppRate.with(this).setStoreType(String); // Any other store,
187
-
// String - an RFC 2396-compliant URI to your app
188
-
// e. g. "https://otherstore.com/app?id=com.yourapp"
189
-
// or "otherstore://apps/com.yourapp"
203
+
AppRate.with(this).setStoreType(String...); // Any other store/stores,
204
+
// String... - an RFC 2396-compliant URI or array of URIs to your app,
205
+
// e. g. "https://otherstore.com/app?id=com.yourapp"
206
+
// or "otherstore://apps/com.yourapp"
190
207
```
191
208
192
-
####Сustom Intents
209
+
### Сustom Intents
193
210
194
211
You can set custom action to the Rate button. For example, you want to open your custom RateActivity when the Rate button clicked.
195
212
196
213
```java
197
-
AppRate.with(this).setStoreType(Intent[]); // Any custom intents, Intent[] - array of intents,
198
-
// first will be executed (startActivity(intents[0])),
199
-
// if first fails, second will be executed (startActivity(intents[1])), etc.
214
+
AppRate.with(this).setStoreType(Intent...); // Any custom intents, Intent... - intent or array of intents,
215
+
// first will be executed (startActivity(intents[0])),
216
+
// if first fails, second will be executed (startActivity(intents[1])), etc.
200
217
```
201
218
202
219
### Check the availability of Google Play
@@ -207,6 +224,12 @@ if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this) != C
207
224
}
208
225
```
209
226
227
+
### Maximum number of the display of the dialog within a 365-day period
0 commit comments