Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.SharePrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.SharePrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.SharePrompt
extends GeckoSession.PromptDelegate.BasePrompt
SharePrompt contains the information necessary to represent a (v1) WebShare request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Possible results to aGeckoSession.PromptDelegate.SharePrompt
.static @interface
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The text for the share request.final String
The uri for the share request.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SharePrompt
(String id, String title, String text, String uri, GeckoSession.PromptDelegate.BasePrompt.Observer observer) -
Method Summary
Modifier and TypeMethodDescriptionconfirm
(int response) Confirms the prompt and either blocks or allows the share request.dismiss()
Dismisses the prompt and returnsGeckoSession.PromptDelegate.SharePrompt.Result.ABORT
to web content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, getDelegate, isComplete, setDelegate
-
Field Details
-
text
The text for the share request. -
uri
The uri for the share request.
-
-
Constructor Details
-
SharePrompt
protected SharePrompt(@NonNull String id, @Nullable String title, @Nullable String text, @Nullable String uri, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
-
-
Method Details
-
confirm
Confirms the prompt and either blocks or allows the share request.- Parameters:
response
- One ofGeckoSession.PromptDelegate.SharePrompt.Result
specifying the outcome of the share attempt.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-
dismiss
Dismisses the prompt and returnsGeckoSession.PromptDelegate.SharePrompt.Result.ABORT
to web content.- Overrides:
dismiss
in classGeckoSession.PromptDelegate.BasePrompt
- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-