com.vorlonsoft.android.rate.DialogManager Maven / Gradle / Ivy
Show all versions of androidrate Show documentation
/*
* Copyright 2017 - 2018 Vorlonsoft LLC
*
* Licensed under The MIT License (MIT)
*/
package com.vorlonsoft.android.rate;
import android.app.Dialog;
import android.content.Context;
/**
* AndroidRate is a library to help you promote your Android app
* by prompting users to rate the app after using it for a few days.
* DialogManager Interface - dialog manager interface of
* the AndroidRate library. You can implements it and use
* {@code AppRate.with(this).setDialogManagerFactory(DialogManager.Factory)]}
* if you want to use fully custom dialog (from support library etc.)
*
* @author Alexander Savin
* @author Antoine Vianey
* @version 1.1.9
* @since 1.0.2
*/
public interface DialogManager {
Dialog createDialog();
/**
* AndroidRate is a library to help you promote your Android app
* by prompting users to rate the app after using it for a few days.
* DialogManager.Factory Interface - dialog manager factory interface
* of the AndroidRate library. You can implements it and use
* {@code AppRate.with(this).setDialogManagerFactory(DialogManager.Factory)]}
* if you want to use fully custom dialog (from support library etc.)
*
* @author Alexander Savin
* @author Antoine Vianey
* @version 1.1.9
* @since 1.0.2
*/
interface Factory {
DialogManager createDialogManager(final Context context, final DialogOptions dialogOptions, final StoreOptions storeOptions);
}
}