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 interfaceDialog.CallbacksDialog Callback, seesetCallbacks(ILibVLC, Callbacks)static classDialog.ErrorMessageError message Used to signal an error message to the userprotected static classDialog.IdDialogstatic classDialog.LoginDialogLogin Dialog Used to ask credentials to the userstatic classDialog.ProgressDialogProgress Dialog Used to display a progress dialogstatic classDialog.QuestionDialogQuestion dialog Used to ask a blocking question
-
Field Summary
Fields Modifier and Type Field Description protected StringmTextprotected intmTypestatic intTYPE_ERRORstatic intTYPE_LOGINstatic intTYPE_PROGRESSstatic intTYPE_QUESTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddismiss()Dismiss the dialogObjectgetContext()Return the object associated with the dialogStringgetText()Get the text of the dialogStringgetTitle()Get the title of the dialogintgetType()static voidsetCallbacks(ILibVLC ILibVLC, Dialog.Callbacks callbacks)Register callbacks in order to handle VLC dialogsvoidsetContext(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
-
-