Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.32 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.32 KB

reviewplz

A library for developers to push users to rate or write a review about their android application.

This library is currently being used in MARTINI.

Getting Started

  1. Register this project as a library project
  2. Copy res/values/reviewplz_settings.xml to your project and customize it.

How to use

Call reportLaunch method

@Override
protected void onCreate(Bundle savedInstanceState) {
    ..
    ReviewPlz.reportLaunch(this);
    ..
}

Call reportSignificantAction method

void significantAction() {
  ..
  ReviewPlz.reportSignificantAction(this);
  ..
}

Call showPushDialog method

void whereYouWantToShowDialog() {
  ReviewPlz.showPushDialog(this);
}

Customize push dialog

import com.ultracaption.library.android.reviewplz.ReviewPlz.ReviewPlzDialog;

public class ReviewPushDialog extends ReviewPlzDialog {
  ..
  public void onReviewButtonClick(View view) {
    okClicked();
  }
  public void onLaterButtonClick(View view) {
    laterClicked();
  }
  public void onRejectButtonClick(View view) {
    rejectClicked();
  }
  ..
}

void whereYouWantToShowDialog() {
  ReviewPlz.showPushDialog(this, new ReviewPushDialog(), "review");
}