Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt
- Enclosing class:
- GeckoSession.PromptDelegate.IdentityCredential
public static class GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt
extends GeckoSession.PromptDelegate.BasePrompt
AccountSelectorPrompt contains the information necessary to represent a prompt that allows
the user to select the account they would like to use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA representation of an Identity Credential Account.static classA representation of an Identity Credential Provider for an Account Selector Promptstatic classA representation of an Identity Credential Provider Accounts.Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionThe accounts from which the user could select.The name of the provider the user is trying to login withFields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Constructor Summary
ConstructorsConstructorDescriptionAccountSelectorPrompt(String id, GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Account[] accounts, GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Provider provider, GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPromptwith the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionconfirm(int accountIndex) Confirms the prompt and passes the account index back to content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
accounts
@NonNull public final GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Account[] accountsThe accounts from which the user could select. -
provider
@NonNull public final GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Provider providerThe name of the provider the user is trying to login with
-
-
Constructor Details
-
AccountSelectorPrompt
public AccountSelectorPrompt(@NonNull String id, @NonNull GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Account[] accounts, @NonNull GeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPrompt.Provider provider, GeckoSession.PromptDelegate.BasePrompt.Observer observer) Creates a newGeckoSession.PromptDelegate.IdentityCredential.AccountSelectorPromptwith the given parameters.- Parameters:
id- The identification for this prompt.accounts- The accounts from which the user could select.provider- The provider on which the user is trying to log in.observer- A callback to notify when the prompt has been completed.
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull int accountIndex) Confirms the prompt and passes the account index back to content.- Parameters:
accountIndex- An integer representing the index of the account chosen by the user to be returned to content.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-