public static class GeckoSession.PromptDelegate.TextPrompt extends GeckoSession.PromptDelegate.BasePrompt
Modifier and Type | Field and Description |
---|---|
String |
defaultValue
The default value for the text field; may be null.
|
String |
message
The message to be displayed with this prompt; may be null.
|
title
Modifier | Constructor and Description |
---|---|
protected |
TextPrompt(String title,
String message,
String defaultValue) |
Modifier and Type | Method and Description |
---|---|
GeckoSession.PromptDelegate.PromptResponse |
confirm(String text)
Confirms this prompt, returning the input text to content.
|
confirm, dismiss, isComplete
@Nullable public final String message
@Nullable public final String defaultValue
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String text)
text
- A String containing the text input given by the user.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.