public abstract class Dialog
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Dialog.Callbacks
Dialog Callback, see
setCallbacks(LibVLC, Callbacks) |
static class |
Dialog.ErrorMessage
Error message
Used to signal an error message to the user
|
protected static class |
Dialog.IdDialog |
static class |
Dialog.LoginDialog
Login Dialog
Used to ask credentials to the user
|
static class |
Dialog.ProgressDialog
Progress Dialog
Used to display a progress dialog
|
static class |
Dialog.QuestionDialog
Question dialog
Used to ask a blocking question
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mText |
protected int |
mType |
static int |
TYPE_ERROR |
static int |
TYPE_LOGIN |
static int |
TYPE_PROGRESS |
static int |
TYPE_QUESTION |
| Modifier | Constructor and Description |
|---|---|
protected |
Dialog(int type,
java.lang.String title,
java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss()
Dismiss the dialog
|
java.lang.Object |
getContext()
Return the object associated with the dialog
|
java.lang.String |
getText()
Get the text of the dialog
|
java.lang.String |
getTitle()
Get the title of the dialog
|
int |
getType()
|
static void |
setCallbacks(LibVLC libVLC,
Dialog.Callbacks callbacks)
Register callbacks in order to handle VLC dialogs
|
void |
setContext(java.lang.Object context)
Associate an object with the dialog
|
public static final int TYPE_ERROR
public static final int TYPE_LOGIN
public static final int TYPE_QUESTION
public static final int TYPE_PROGRESS
protected final int mType
protected java.lang.String mText
public int getType()
public java.lang.String getTitle()
public java.lang.String getText()
public void setContext(java.lang.Object context)
public java.lang.Object getContext()
public void dismiss()
public static void setCallbacks(LibVLC libVLC, Dialog.Callbacks callbacks)
libVLC - valid LibVLC objectcallbacks - dialog callbacks or null to unregister