Class GeckoSession.PromptDelegate.AlertPrompt

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

public static class GeckoSession.PromptDelegate.AlertPrompt extends GeckoSession.PromptDelegate.BasePrompt
AlertPrompt contains the information necessary to represent a JavaScript alert() call from content; it can only be dismissed, not confirmed.
  • Field Details

    • message

      @Nullable public final String message
      The message to be displayed with this alert; may be null.
  • Constructor Details

    • AlertPrompt

      protected AlertPrompt(@NonNull String id, @Nullable String title, @Nullable String message, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
      Constructs an AlertPrompt for JavaScript alert dialogs.
      Parameters:
      id - the unique identifier for this prompt
      title - optional title text of the alert; may be null
      message - the message to be displayed with this alert; may be null
      observer - observer to notify when the prompt is dismissed