@@ -5,7 +5,7 @@ An android library to display a rate dialog in an easy way.
55
66## Releases:
77
8- #### Current release: 1.0.5 .
8+ #### Current release: 1.0.6 .
99
1010You can see all the library releases [ here] ( https://github.com/marcoscgdev/RateDialog/releases ) .
1111
@@ -50,7 +50,7 @@ Translate this library into your language [here](https://goo.gl/CFZzTh).
5050
5151Add this to your root * build.gradle* file:
5252
53- ```
53+ ``` groovy
5454allprojects {
5555 repositories {
5656 ...
@@ -61,28 +61,55 @@ allprojects {
6161
6262Now add the dependency to your app build.gradle file:
6363
64- ```
65- implementation 'com.github.marcoscgdev:RateDialog:1.0.5 '
64+ ``` groovy
65+ implementation 'com.github.marcoscgdev:RateDialog:1.0.6 '
6666```
6767
6868### Creating the dialog
6969
7070Show the dialog each 3 days and each 7 launches (default config):
7171
72- ```
73- RateDialog.with (this);
72+ ``` java
73+ RateDialog . init (this );
7474```
7575
76- Shows the dialog with custom config. Use 0 to get the default value :
76+ Shows the dialog with custom config:
7777
78+ ``` java
79+ RateDialog . init(this , 2 , 0 ); // daysUntilPrompt, launchesUntilPrompt
7880```
79- RateDialog.with(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt
81+
82+ You can also get the default config values:
83+
84+ ``` java
85+ RateDialog . DEFAULT_DAYS_UNTIL_PROMPT
86+ RateDialog . DEFAULT_LAUNCHES_UNTIL_PROMPT
8087```
8188
8289Show the dialog instantly:
8390
91+ ``` java
92+ RateDialog . showDialog(this );
8493```
85- RateDialog.show(this);
94+
95+ ### Creating custom dialog instance
96+
97+ ``` java
98+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" );
99+ rateDialog. init();
100+ ```
101+
102+ You can also use custom config
103+
104+ ``` java
105+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" , daysUntilPrompt, launchesUntilPrompt);
106+ ```
107+
108+ Show the custom dialog instantly:
109+
110+ ``` java
111+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" );
112+ rateDialog. showDialog();
86113```
87114
88115Custom dialog strings (just override it):
@@ -104,7 +131,7 @@ Custom dialog strings (just override it):
104131## License
105132
106133```
107- Copyright 2017 Marcos Calvo García
134+ Copyright 2020 Marcos Calvo García
108135
109136Licensed under the Apache License, Version 2.0 (the "License");
110137you may not use this file except in compliance with the License.
0 commit comments