public static class GeckoSession.PromptDelegate.ChoicePrompt extends GeckoSession.PromptDelegate.BasePrompt
Modifier and Type | Class and Description |
---|---|
static class |
GeckoSession.PromptDelegate.ChoicePrompt.Choice |
static class |
GeckoSession.PromptDelegate.ChoicePrompt.Type |
Modifier and Type | Field and Description |
---|---|
GeckoSession.PromptDelegate.ChoicePrompt.Choice[] |
choices
An array of
GeckoSession.PromptDelegate.ChoicePrompt.Choice representing possible choices. |
String |
message
The message to be displayed with this prompt; may be null.
|
int |
type
|
title
Modifier | Constructor and Description |
---|---|
protected |
ChoicePrompt(String title,
String message,
int type,
GeckoSession.PromptDelegate.ChoicePrompt.Choice[] choices) |
Modifier and Type | Method and Description |
---|---|
GeckoSession.PromptDelegate.PromptResponse |
confirm(GeckoSession.PromptDelegate.ChoicePrompt.Choice selectedChoice)
Confirms this prompt with a single choice.
|
GeckoSession.PromptDelegate.PromptResponse |
confirm(GeckoSession.PromptDelegate.ChoicePrompt.Choice[] selectedChoices)
Confirms this prompt with multiple choices.
|
GeckoSession.PromptDelegate.PromptResponse |
confirm(String selectedId)
Confirms this prompt with the string id of a single choice.
|
GeckoSession.PromptDelegate.PromptResponse |
confirm(String[] selectedIds)
Confirms this prompt with the string ids of multiple choices
|
confirm, dismiss, isComplete
@Nullable public final String message
public final int type
@NonNull public final GeckoSession.PromptDelegate.ChoicePrompt.Choice[] choices
GeckoSession.PromptDelegate.ChoicePrompt.Choice
representing possible choices.protected ChoicePrompt(@Nullable String title, @Nullable String message, int type, @NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice[] choices)
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String selectedId)
selectedId
- The string ID of the selected choice.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String[] selectedIds)
selectedIds
- The string IDs of the selected choices.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice selectedChoice)
selectedChoice
- The selected choice.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice[] selectedChoices)
selectedChoices
- The selected choices.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.