Skip to content

Commit 0aa78ea

Browse files
authored
Update README.md
1 parent 84765d5 commit 0aa78ea

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,26 @@ implementation 'com.github.marcoscgdev:RateDialog:1.0.6'
7070
Show the dialog each 3 days and each 7 launches (default config):
7171

7272
```java
73-
RateDialog.with(this);
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

7878
```java
79-
RateDialog.with(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt
79+
RateDialog.init(this, 2, 0); // daysUntilPrompt, launchesUntilPrompt
80+
```
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

8289
Show the dialog instantly:
8390

8491
```java
85-
RateDialog.show(this);
92+
RateDialog.showDialog(this);
8693
```
8794

8895
### Creating custom dialog instance

0 commit comments

Comments
 (0)