public static interface Dialog.Callbacks
Dialog.setCallbacks(ILibVLC, Callbacks)
Modifier and Type | Method and Description |
---|---|
void |
onCanceled(Dialog dialog)
Called when a previously displayed dialog need to be canceled
|
void |
onDisplay(Dialog.ErrorMessage dialog)
Call when an error message need to be displayed
|
void |
onDisplay(Dialog.LoginDialog dialog)
Called when a login dialog need to be displayed
Call
Dialog.LoginDialog.postLogin(String, String, boolean) to post the answer, or
call Dialog.IdDialog.dismiss() to dismiss the dialog. |
void |
onDisplay(Dialog.ProgressDialog dialog)
Called when a progress dialog need to be displayed
Call
Dialog.IdDialog.dismiss() to dismiss the dialog (if it's cancelable). |
void |
onDisplay(Dialog.QuestionDialog dialog)
Called when a question dialog need to be displayed
Call
Dialog.QuestionDialog.postAction(int) to post the answer, or
call Dialog.IdDialog.dismiss() to dismiss the dialog. |
void |
onProgressUpdate(Dialog.ProgressDialog dialog)
Called when a progress dialog needs to be updated
Dialog text and position may be updated, call
Dialog.getText() and
Dialog.ProgressDialog.getPosition() to get the updated information. |
@MainThread void onDisplay(Dialog.ErrorMessage dialog)
dialog
- error dialog to be displayed@MainThread void onDisplay(Dialog.LoginDialog dialog)
Dialog.LoginDialog.postLogin(String, String, boolean)
to post the answer, or
call Dialog.IdDialog.dismiss()
to dismiss the dialog.dialog
- login dialog to be displayed@MainThread void onDisplay(Dialog.QuestionDialog dialog)
Dialog.QuestionDialog.postAction(int)
to post the answer, or
call Dialog.IdDialog.dismiss()
to dismiss the dialog.dialog
- question dialog to be displayed@MainThread void onDisplay(Dialog.ProgressDialog dialog)
Dialog.IdDialog.dismiss()
to dismiss the dialog (if it's cancelable).dialog
- question dialog to be displayed@MainThread void onCanceled(Dialog dialog)
dialog
- dialog to be canceled@MainThread void onProgressUpdate(Dialog.ProgressDialog dialog)
Dialog.getText()
and
Dialog.ProgressDialog.getPosition()
to get the updated information.dialog
- dialog to be updated