Package org.videolan.libvlc
Class Dialog
- java.lang.Object
-
- org.videolan.libvlc.Dialog
-
- Direct Known Subclasses:
Dialog.ErrorMessage
,Dialog.IdDialog
public abstract class Dialog extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Dialog.Callbacks
Dialog Callback, seesetCallbacks(ILibVLC, Callbacks)
static class
Dialog.ErrorMessage
Error message Used to signal an error message to the userprotected static class
Dialog.IdDialog
static class
Dialog.LoginDialog
Login Dialog Used to ask credentials to the userstatic class
Dialog.ProgressDialog
Progress Dialog Used to display a progress dialogstatic class
Dialog.QuestionDialog
Question dialog Used to ask a blocking question
-
Field Summary
Fields Modifier and Type Field Description protected String
mText
protected int
mType
static int
TYPE_ERROR
static int
TYPE_LOGIN
static int
TYPE_PROGRESS
static int
TYPE_QUESTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dismiss()
Dismiss the dialogObject
getContext()
Return the object associated with the dialogString
getText()
Get the text of the dialogString
getTitle()
Get the title of the dialogint
getType()
static void
setCallbacks(ILibVLC ILibVLC, Dialog.Callbacks callbacks)
Register callbacks in order to handle VLC dialogsvoid
setContext(Object context)
Associate an object with the dialog
-
-
-
Field Detail
-
TYPE_ERROR
public static final int TYPE_ERROR
- See Also:
- Constant Field Values
-
TYPE_LOGIN
public static final int TYPE_LOGIN
- See Also:
- Constant Field Values
-
TYPE_QUESTION
public static final int TYPE_QUESTION
- See Also:
- Constant Field Values
-
TYPE_PROGRESS
public static final int TYPE_PROGRESS
- See Also:
- Constant Field Values
-
mType
protected final int mType
-
mText
protected String mText
-
-
Method Detail
-
getType
@MainThread public int getType()
- Returns:
-
getTitle
@MainThread public String getTitle()
Get the title of the dialog
-
getText
@MainThread public String getText()
Get the text of the dialog
-
setContext
@MainThread public void setContext(Object context)
Associate an object with the dialog
-
getContext
@MainThread public Object getContext()
Return the object associated with the dialog
-
dismiss
@MainThread public void dismiss()
Dismiss the dialog
-
setCallbacks
@MainThread public static void setCallbacks(ILibVLC ILibVLC, Dialog.Callbacks callbacks)
Register callbacks in order to handle VLC dialogs- Parameters:
ILibVLC
- valid LibVLC objectcallbacks
- dialog callbacks or null to unregister
-
-