Package org.videolan.libvlc
Class Dialog.QuestionDialog
- java.lang.Object
-
- org.videolan.libvlc.Dialog
-
- org.videolan.libvlc.Dialog.IdDialog
-
- org.videolan.libvlc.Dialog.QuestionDialog
-
- Enclosing class:
- Dialog
public static class Dialog.QuestionDialog extends Dialog.IdDialog
Question dialog Used to ask a blocking question
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.videolan.libvlc.Dialog
Dialog.Callbacks, Dialog.ErrorMessage, Dialog.IdDialog, Dialog.LoginDialog, Dialog.ProgressDialog, Dialog.QuestionDialog
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_ERROR
static int
TYPE_NORMAL
static int
TYPE_WARNING
-
Fields inherited from class org.videolan.libvlc.Dialog.IdDialog
mId
-
Fields inherited from class org.videolan.libvlc.Dialog
mText, mType, TYPE_LOGIN, TYPE_PROGRESS, TYPE_QUESTION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction1Text()
Get the text of the first button (optional, can be null)String
getAction2Text()
Get the text of the second button (optional, can be null)String
getCancelText()
Get the text of the cancel buttonint
getQuestionType()
void
postAction(int action)
Post an answer-
Methods inherited from class org.videolan.libvlc.Dialog.IdDialog
dismiss
-
Methods inherited from class org.videolan.libvlc.Dialog
getContext, getText, getTitle, getType, setCallbacks, setContext
-
-
-
-
Field Detail
-
TYPE_NORMAL
public static final int TYPE_NORMAL
- See Also:
- Constant Field Values
-
TYPE_WARNING
public static final int TYPE_WARNING
- See Also:
- Constant Field Values
-
TYPE_ERROR
public static final int TYPE_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQuestionType
@MainThread public int getQuestionType()
-
getCancelText
@MainThread public String getCancelText()
Get the text of the cancel button
-
getAction1Text
@MainThread public String getAction1Text()
Get the text of the first button (optional, can be null)
-
getAction2Text
@MainThread public String getAction2Text()
Get the text of the second button (optional, can be null)
-
postAction
@MainThread public void postAction(int action)
Post an answer- Parameters:
action
- 1 for first action, 2 for second action
-
-