Class GeckoSession.PromptDelegate.TextPrompt

Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.TextPrompt
Enclosing interface:
GeckoSession.PromptDelegate

public static class GeckoSession.PromptDelegate.TextPrompt extends GeckoSession.PromptDelegate.BasePrompt
TextPrompt contains the information necessary to represent a Javascript prompt() call from content.
  • Field Details

    • message

      @Nullable public final String message
      The message to be displayed with this prompt; may be null.
    • defaultValue

      @Nullable public final String defaultValue
      The default value for the text field; may be null.
  • Constructor Details

    • TextPrompt

      protected TextPrompt(@NonNull String id, @Nullable String title, @Nullable String message, @Nullable String defaultValue, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
      Constructs a TextPrompt for JavaScript prompt() dialogs.
      Parameters:
      id - the unique identifier for this prompt
      title - optional title text; may be null
      message - the message to display; may be null
      defaultValue - the default input value; may be null
      observer - observer to notify when the prompt is completed
  • Method Details