Package org.mozilla.geckoview
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe message to be displayed with this alert; may be null.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAlertPrompt(String id, String title, String message, GeckoSession.PromptDelegate.BasePrompt.Observer observer) Constructs an AlertPrompt for JavaScript alert dialogs. -
Method Summary
Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
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 prompttitle- optional title text of the alert; may be nullmessage- the message to be displayed with this alert; may be nullobserver- observer to notify when the prompt is dismissed
-