Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.RepostConfirmPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.RepostConfirmPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.RepostConfirmPrompt
extends GeckoSession.PromptDelegate.BasePrompt
RepostConfirmPrompt represents a prompt shown whenever the browser needs to resubmit POST
data (e.g. due to page refresh).
-
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
ConstructorsModifierConstructorDescriptionprotectedConstructs a RepostConfirmPrompt for POST data resubmission prompts. -
Method Summary
Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Constructor Details
-
RepostConfirmPrompt
protected RepostConfirmPrompt(@NonNull String id, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer) Constructs a RepostConfirmPrompt for POST data resubmission prompts.- Parameters:
id- the unique identifier for this promptobserver- the observer to notify when the prompt is completed
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@Nullable AllowOrDeny allowOrDeny) Confirms the prompt.- Parameters:
allowOrDeny- whether the browser should allow resubmitting data.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-