public class DefaultDialogManager extends Object implements DialogManager
DefaultDialogManager Class - default dialog manager class implements
DialogManager interface of the AndroidRate library. You can extends it and use
AppRate.with(this).setDialogManagerFactory(DialogManager.Factory)]
if you want to use fully custom dialog (from support library etc.).
DefaultDialogManager Class is thread-safe and a fast singleton implementation
inside library, not outside (protected, not private constructor).
Modifier and Type | Field and Description |
---|---|
protected DialogInterface.OnDismissListener |
dismissListener |
protected DialogInterface.OnClickListener |
negativeListener |
protected DialogInterface.OnClickListener |
neutralListener |
protected DialogInterface.OnClickListener |
positiveListener |
protected DialogInterface.OnShowListener |
showListener |
Modifier | Constructor and Description |
---|---|
protected |
DefaultDialogManager(Context context,
DialogOptions dialogOptions,
StoreOptions storeOptions) |
protected final DialogInterface.OnShowListener showListener
protected final DialogInterface.OnDismissListener dismissListener
protected final DialogInterface.OnClickListener positiveListener
protected final DialogInterface.OnClickListener negativeListener
protected final DialogInterface.OnClickListener neutralListener
protected DefaultDialogManager(Context context, DialogOptions dialogOptions, StoreOptions storeOptions)
@Nullable public Dialog createDialog()
createDialog
in interface DialogManager