Skip to content

Commit 84765d5

Browse files
authored
Update README.md
1 parent 8e0b99a commit 84765d5

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

README.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1010
You 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

5151
Add this to your root *build.gradle* file:
5252

53-
```
53+
```groovy
5454
allprojects {
5555
repositories {
5656
...
@@ -61,30 +61,50 @@ allprojects {
6161

6262
Now 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

7070
Show the dialog each 3 days and each 7 launches (default config):
7171

72-
```
72+
```java
7373
RateDialog.with(this);
7474
```
7575

7676
Shows the dialog with custom config. Use 0 to get the default value:
7777

78-
```
78+
```java
7979
RateDialog.with(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt
8080
```
8181

8282
Show the dialog instantly:
8383

84-
```
84+
```java
8585
RateDialog.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+
88108
Custom 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
109129
Licensed under the Apache License, Version 2.0 (the "License");
110130
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)