Tabnine Logo
RateThisApp.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
com.kobakei.ratethisapp.RateThisApp

Best Java code snippets using com.kobakei.ratethisapp.RateThisApp.init (Showing top 3 results out of 315)

origin: JavaCafe01/PdfViewer

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  prefManager = PreferenceManager.getDefaultSharedPreferences(this);
  onFirstInstall();
  onFirstUpdate();
  handleIntent(getIntent());
  if (Utils.tempBool && getIntent().getStringExtra("uri") != null)
    uri = Uri.parse(getIntent().getStringExtra("uri"));
  // Custom condition: 5 days and 5 launches
  RateThisApp.Config config = new RateThisApp.Config(5, 5);
  RateThisApp.init(config);
  RateThisApp.onCreate(this);
  RateThisApp.showRateDialogIfNeeded(this);
}
origin: kobakei/Android-RateThisApp

RateThisApp.init(new RateThisApp.Config(3, 5));
origin: kobakei/Android-RateThisApp

@Test
public void shouldRateDialogIfNeeded_LaunchTimeIsCorrect() {
  Context context = RuntimeEnvironment.application.getApplicationContext();
  RateThisApp.init(new RateThisApp.Config(1, 3));
  RateThisApp.onStart(context);
  Assert.assertFalse(RateThisApp.shouldShowRateDialog());
  RateThisApp.onStart(context);
  Assert.assertFalse(RateThisApp.shouldShowRateDialog());
  RateThisApp.onStart(context);
  Assert.assertTrue(RateThisApp.shouldShowRateDialog());
  RateThisApp.onStart(context);
  Assert.assertTrue(RateThisApp.shouldShowRateDialog());
}
com.kobakei.ratethisappRateThisAppinit

Javadoc

Initialize RateThisApp configuration.

Popular methods of RateThisApp

  • onCreate
    Call this API when the launcher activity is launched. It is better to call this API in onCreate() of
  • showRateDialogIfNeeded
    Show the rate dialog if the criteria is satisfied.
  • showRateDialog
  • shouldShowRateDialog
    Check whether the rate dialog should be shown or not. Developers may call this method directly if th
  • stopRateDialog
    Stop showing the rate dialog
  • getLaunchCount
    Get count number of the rate dialog launches
  • log
    Print log if enabled
  • onStart
    This API is deprecated. You should call onCreate instead of this API in Activity's onCreate().
  • printStatus
    Print values in SharedPreferences (used for debug)
  • setCallback
    Set callback instance. The callback will receive yes/no/later events.
  • setOptOut
    Set opt out flag. If it is true, the rate dialog will never shown unless app data is cleared. This m
  • storeInstallDate
    Store install date. Install date is retrieved from package manager if possible.
  • setOptOut,
  • storeInstallDate

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now