-
public class Dialog.QuestionDialog extends Dialog.IdDialogQuestion dialogUsed to ask a blocking question
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTYPE_NORMALpublic final static intTYPE_WARNINGpublic final static intTYPE_ERROR
-
Method Summary
Modifier and Type Method Description intgetQuestionType()Get the type (or severity) of the question dialogSee TYPE_NORMAL, TYPE_WARNING and TYPE_ERROR StringgetCancelText()Get the text of the cancel button StringgetAction1Text()Get the text of the first button (optional, can be null) StringgetAction2Text()Get the text of the second button (optional, can be null) voidpostAction(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 -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getQuestionType
@MainThread() int getQuestionType()
Get the type (or severity) of the question dialogSee TYPE_NORMAL, TYPE_WARNING and TYPE_ERROR
-
getCancelText
@MainThread() String getCancelText()
Get the text of the cancel button
-
getAction1Text
@MainThread() String getAction1Text()
Get the text of the first button (optional, can be null)
-
getAction2Text
@MainThread() String getAction2Text()
Get the text of the second button (optional, can be null)
-
postAction
@MainThread() void postAction(int action)
Post an answer
- Parameters:
action- 1 for first action, 2 for second action
-
-
-
-