Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
- Enclosing class:
- GeckoSession.PromptDelegate.IdentityCredential
public static class GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
extends GeckoSession.PromptDelegate.BasePrompt
ProviderSelectorPrompt contains the information necessary to represent a prompt that allows
the user to select the identity credential provider they would like to use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A representation of an Identity Credential Provider.Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe providers from which the user could select.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProviderSelectorPrompt
(String id, GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt.Provider[] providers, GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionconfirm
(int providerIndex) Confirms the prompt and passes the provider index back to content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
providers
@NonNull public final GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt.Provider[] providersThe providers from which the user could select.
-
-
Constructor Details
-
ProviderSelectorPrompt
protected ProviderSelectorPrompt(@NonNull String id, @NonNull GeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt.Provider[] providers, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.ProviderSelectorPrompt
with the given parameters.- Parameters:
id
- The identification for this prompt.providers
- The providers from which the user could select.observer
- A callback to notify when the prompt has been completed.
-
-
Method Details
-
confirm
Confirms the prompt and passes the provider index back to content.- Parameters:
providerIndex
- providerIndex An integer representing the index of the provider chosen by the user to be returned to content.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-