Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.AutocompleteRequest<T extends Autocomplete.Option<?>>
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.AutocompleteRequest<T>
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.AutocompleteRequest<T extends Autocomplete.Option<?>>
extends GeckoSession.PromptDelegate.BasePrompt
Request containing information required to resolve Autocomplete prompt requests.
-
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
AutocompleteRequest
(String id, T[] options, GeckoSession.PromptDelegate.BasePrompt.Observer observer) -
Method Summary
Modifier and TypeMethodDescriptionconfirm
(Autocomplete.Option<?> selection) Confirm the request by responding with a selection.dismiss()
Dismiss the request.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, getDelegate, isComplete, setDelegate
-
Field Details
-
options
The Autocomplete options for this request. This can contain a single or multiple entries.
-
-
Constructor Details
-
AutocompleteRequest
protected AutocompleteRequest(@NonNull String id, @NonNull T[] options, GeckoSession.PromptDelegate.BasePrompt.Observer observer)
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull Autocomplete.Option<?> selection) Confirm the request by responding with a selection. See the PromptDelegate callbacks for specifics.- Parameters:
selection
- TheAutocomplete.Option
used to confirm the request.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-
dismiss
Dismiss the request. See the PromptDelegate callbacks for specifics.- Overrides:
dismiss
in classGeckoSession.PromptDelegate.BasePrompt
- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-