public static class GeckoSession.PromptDelegate.ButtonPrompt extends GeckoSession.PromptDelegate.BasePrompt
Modifier and Type | Class and Description |
---|---|
static class |
GeckoSession.PromptDelegate.ButtonPrompt.Type |
Modifier and Type | Field and Description |
---|---|
String |
message
The message to be displayed with this prompt; may be null.
|
title
Modifier | Constructor and Description |
---|---|
protected |
ButtonPrompt(String title,
String message) |
Modifier and Type | Method and Description |
---|---|
GeckoSession.PromptDelegate.PromptResponse |
confirm(int selection)
Confirms this prompt, returning the selected button to content.
|
confirm, dismiss, isComplete
@Nullable public final String message
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(int selection)
selection
- An int representing the selected button, must be
one of GeckoSession.PromptDelegate.ButtonPrompt.Type
.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.