Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.PopupPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.PopupPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.PopupPrompt
extends GeckoSession.PromptDelegate.BasePrompt
PopupPrompt contains the information necessary to represent a popup blocking request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer
-
Field Summary
Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title
-
Constructor Summary
ModifierConstructorDescriptionprotected
PopupPrompt
(String id, String targetUri, GeckoSession.PromptDelegate.BasePrompt.Observer observer) -
Method Summary
Modifier and TypeMethodDescriptionconfirm
(AllowOrDeny response) Confirms the prompt and either allows or blocks the popup.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
targetUri
The target URI for the popup; may be null.
-
-
Constructor Details
-
PopupPrompt
protected PopupPrompt(@NonNull String id, @Nullable String targetUri, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull AllowOrDeny response) Confirms the prompt and either allows or blocks the popup.- Parameters:
response
- AnAllowOrDeny
specifying whether to allow or deny the popup.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-