Skip to content

Commit ee8638e

Browse files
committed
LIBcc40831 javadoc comments updated
1 parent 8bcde15 commit ee8638e

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

library/src/main/java/com/vorlonsoft/android/rate/AppRate.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public AppRate setShowLaterButton(@SuppressWarnings("SameParameterValue") boolea
239239
* Decides if Never button appear in the rating dialog or not
240240
*
241241
* @param isShowNeverButton default is true
242+
* @return AppRate singleton object
242243
*/
243244
@SuppressWarnings("unused")
244245
public AppRate setShowNeverButton(boolean isShowNeverButton) {
@@ -345,6 +346,7 @@ public AppRate setTextNever(String negativeText) {
345346
* Sets whether the rating dialog is cancelable or not.
346347
*
347348
* @param cancelable default is false
349+
* @return AppRate singleton object
348350
*/
349351
public AppRate setCancelable(@SuppressWarnings("SameParameterValue") boolean cancelable) {
350352
dialogOptions.setCancelable(cancelable);
@@ -464,6 +466,7 @@ public AppRate setEventCountValue(String eventName, short countValue) {
464466
* Sets dialog theme. You can use a specific theme to inflate the dialog.
465467
*
466468
* @param themeResId theme resource ID, default is 0
469+
* @return AppRate singleton object
467470
*/
468471
@SuppressWarnings("unused")
469472
public AppRate setThemeResId(int themeResId) {
@@ -476,6 +479,7 @@ public AppRate setThemeResId(int themeResId) {
476479
*
477480
* @param dialogManagerFactory DialogManager.Factory object, default is
478481
* DefaultDialogManager.Factory object
482+
* @return AppRate singleton object
479483
*/
480484
@SuppressWarnings("unused")
481485
public AppRate setDialogManagerFactory(DialogManager.Factory dialogManagerFactory) {
@@ -486,8 +490,8 @@ public AppRate setDialogManagerFactory(DialogManager.Factory dialogManagerFactor
486490
}
487491

488492
/**
489-
* <p>Monitors app launch times.</p>
490-
* <p>Call this method when the launcher activity's onCreate() is launched.</p>
493+
* <p>Monitors launches of the application.</p>
494+
* <p>Call this method when the {@code onCreate()} of the app's launcher activity is launched.</p> *
491495
*/
492496
public void monitor() {
493497
if (isFirstLaunch(context)) {
@@ -622,11 +626,25 @@ private boolean isOverCustomEventsRequirements() {
622626
}
623627
}
624628

629+
/**
630+
* <p>Checks if the library is in Debug mode. <b>For development only!</b></p>
631+
*
632+
* @return true if the library is in Debug mode, false otherwise
633+
*/
625634
@SuppressWarnings({"unused", "WeakerAccess"})
626635
public boolean isDebug() {
627636
return isDebug;
628637
}
629638

639+
/**
640+
* <p>Debug mode. <b>For development only!</b></p>
641+
* <p>Setting the library to Debug mode ensures that the Rate Dialog will be shown each time
642+
* the app is launched.</p>
643+
*
644+
* @param isDebug default is false, true ensures that the Rate Dialog will be shown each time
645+
* the app is launched
646+
* @return AppRate singleton object
647+
*/
630648
public AppRate setDebug(@SuppressWarnings("SameParameterValue") boolean isDebug) {
631649
this.isDebug = isDebug;
632650
return this;

library/src/main/java/com/vorlonsoft/android/rate/OnClickButtonListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
/**
1010
* <p>OnClickButtonListener Interface - on click button listener interface
11-
* of the AndroidRate library. You can implements it and use
12-
* {@code AppRate.with(this).setOnClickButtonListener(OnClickButtonListener)]}
11+
* of the AndroidRate library. You can implement it and use
12+
* {@code AppRate.with(this).setOnClickButtonListener(OnClickButtonListener)}
1313
* to specify the callback when the button is pressed. The same value as the
1414
* second argument of {@link android.content.DialogInterface.OnClickListener#onClick}
1515
* will be passed in the argument of {@link OnClickButtonListener#onClickButton}.</p>

0 commit comments

Comments
 (0)