Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.BasePrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
- Direct Known Subclasses:
GeckoSession.PromptDelegate.AlertPrompt
,GeckoSession.PromptDelegate.AuthPrompt
,GeckoSession.PromptDelegate.AutocompleteRequest
,GeckoSession.PromptDelegate.BeforeUnloadPrompt
,GeckoSession.PromptDelegate.ButtonPrompt
,GeckoSession.PromptDelegate.ChoicePrompt
,GeckoSession.PromptDelegate.ColorPrompt
,GeckoSession.PromptDelegate.DateTimePrompt
,GeckoSession.PromptDelegate.FilePrompt
,GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt
,GeckoSession.PromptDelegate.IdentityCredential.PrivacyPolicyPrompt
,GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
,GeckoSession.PromptDelegate.PopupPrompt
,GeckoSession.PromptDelegate.RepostConfirmPrompt
,GeckoSession.PromptDelegate.SharePrompt
,GeckoSession.PromptDelegate.TextPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
-
Field Summary
Fields -
Method Summary
-
Field Details
-
title
The title of this prompt; may be null.
-
-
Method Details
-
confirm
-
dismiss
This dismisses the prompt without sending any meaningful information back to content.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
with which you can complete theGeckoResult
that corresponds to this prompt.
-
setDelegate
@UiThread public void setDelegate(@Nullable GeckoSession.PromptDelegate.PromptInstanceDelegate delegate) Set the delegate for this prompt.- Parameters:
delegate
- theGeckoSession.PromptDelegate.PromptInstanceDelegate
instance.
-
getDelegate
Get the delegate for this prompt.- Returns:
- the
GeckoSession.PromptDelegate.PromptInstanceDelegate
instance.
-
isComplete
@UiThread public boolean isComplete()This returns true if the prompt has already been confirmed or dismissed.- Returns:
- A boolean which is true if the prompt has been confirmed or dismissed, and false otherwise.
-