public static class GeckoSession.PromptDelegate.AuthPrompt extends GeckoSession.PromptDelegate.BasePrompt
Modifier and Type | Class and Description |
---|---|
static class |
GeckoSession.PromptDelegate.AuthPrompt.AuthOptions |
Modifier and Type | Field and Description |
---|---|
GeckoSession.PromptDelegate.AuthPrompt.AuthOptions |
authOptions
The
GeckoSession.PromptDelegate.AuthPrompt.AuthOptions that describe the type of authorization prompt. |
String |
message
The message to be displayed with this prompt; may be null.
|
title
Modifier | Constructor and Description |
---|---|
protected |
AuthPrompt(String title,
String message,
GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions) |
Modifier and Type | Method and Description |
---|---|
GeckoSession.PromptDelegate.PromptResponse |
confirm(String password)
Confirms this prompt with just a password, returning the password to content.
|
GeckoSession.PromptDelegate.PromptResponse |
confirm(String username,
String password)
Confirms this prompt with a username and password, returning both to content.
|
confirm, dismiss, isComplete
@Nullable public final String message
@NonNull public final GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions
GeckoSession.PromptDelegate.AuthPrompt.AuthOptions
that describe the type of authorization prompt.protected AuthPrompt(@Nullable String title, @Nullable String message, @NonNull GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions)
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String password)
password
- A String containing the password input by the user.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String username, @NonNull String password)
username
- A String containing the username input by the user.password
- A String containing the password input by the user.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.