Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.BeforeUnloadPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.BeforeUnloadPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.BeforeUnloadPrompt
extends GeckoSession.PromptDelegate.BasePrompt
BeforeUnloadPrompt represents the onbeforeunload prompt. See
https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload
-
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
-
Method Summary
Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Constructor Details
-
BeforeUnloadPrompt
protected BeforeUnloadPrompt(@NonNull String id, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@Nullable AllowOrDeny allowOrDeny) Confirms the prompt.- Parameters:
allowOrDeny
- whether the navigation should be allowed to continue or not.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-