@@ -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,30 +61,50 @@ 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- ```
72+ ``` java
7373RateDialog . with(this );
7474```
7575
7676Shows the dialog with custom config. Use 0 to get the default value:
7777
78- ```
78+ ``` java
7979RateDialog . with(this , 2 , 0 ); // daysUntilPrompt, launchesUntilPrompt
8080```
8181
8282Show the dialog instantly:
8383
84- ```
84+ ``` java
8585RateDialog . show(this );
8686```
8787
88+ ### Creating custom dialog instance
89+
90+ ``` java
91+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" );
92+ rateDialog. init();
93+ ```
94+
95+ You can also use custom config
96+
97+ ``` java
98+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" , daysUntilPrompt, launchesUntilPrompt);
99+ ```
100+
101+ Show the custom dialog instantly:
102+
103+ ``` java
104+ RateDialog rateDialog = new RateDialog (this , " custom_rate_dialog" );
105+ rateDialog. showDialog();
106+ ```
107+
88108Custom dialog strings (just override it):
89109
90110```
@@ -104,7 +124,7 @@ Custom dialog strings (just override it):
104124## License
105125
106126```
107- Copyright 2017 Marcos Calvo García
127+ Copyright 2020 Marcos Calvo García
108128
109129Licensed under the Apache License, Version 2.0 (the "License");
110130you may not use this file except in compliance with the License.
0 commit comments