Skip to content

Commit

Permalink
Merge pull request #50 from androidsx/add-javadoc
Browse files Browse the repository at this point in the history
Add javadoc
  • Loading branch information
ompemi committed Oct 6, 2014
2 parents 60ca4b5 + 9155984 commit cfb4c34
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ public Builder(DialogGoToMail dialogGoToMail) {
return;
}

/**
* Set the company email when select {@code true} in {@link #setGoToMail(boolean)}
* if you select {@code false}, no need to configure
* @param email String variable is a email of company
* @return
*/
public Builder setEmail(String email) {
this.email = email;
return this;
Expand All @@ -314,7 +320,16 @@ public Builder setShowShareButton(boolean showShareButton) {
this.showShareButton = showShareButton;
return this;
}


/**
* Set if you want to display a new dialog when the user selects less than 4 star. On this
* dialog the user may send feedback for your App
* If you select {@code true} you must set the mail with {@link #setEmail(String)}, if not the App
* will closed by exception : IllegalArgumentException
*
* @param goToMail boolean variable to see new dialog for get feedback in your App
* @return this builder
*/
public Builder setGoToMail(boolean goToMail) {
this.goToMail = goToMail;
return this;
Expand All @@ -340,6 +355,12 @@ public Builder setLineDividerColor(int lineDividerColor) {
return this;
}

/** Set a icon that will take the dialog. If not you set any icon, the icon that will
* put by default is {@code ic_launcher}
*
* @param logoResId App icon
* @return this builder
*/
public Builder setLogoResourceId(int logoResId) {
this.logoResId = logoResId;
return this;
Expand Down

0 comments on commit cfb4c34

Please sign in to comment.