class DialogManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
DialogManager.DialogResult
The interface Dialog result.
|
private static class |
DialogManager.SingletonHolder |
Modifier | Constructor and Description |
---|---|
private |
DialogManager() |
Modifier and Type | Method and Description |
---|---|
private void |
callCallback(DialogManager.DialogResult callback,
boolean positiveButtonClicked) |
static DialogManager |
getInstance()
Gets instance.
|
(package private) void |
showDialog(java.lang.String title,
java.lang.String message,
java.lang.String positiveButtonTitle,
java.lang.String negativeButtonTitle,
DialogManager.DialogResult callback)
Show dialog.
|
public static DialogManager getInstance()
void showDialog(@NonNull java.lang.String title, @NonNull java.lang.String message, @NonNull java.lang.String positiveButtonTitle, @Nullable java.lang.String negativeButtonTitle, @Nullable DialogManager.DialogResult callback)
title
- the titlemessage
- the messagepositiveButtonTitle
- the positive button titlenegativeButtonTitle
- the negative button titlecallback
- the callbackprivate void callCallback(@Nullable DialogManager.DialogResult callback, boolean positiveButtonClicked)