public static class GeckoSession.PromptDelegate.FilePrompt extends GeckoSession.PromptDelegate.BasePrompt
Modifier and Type | Class and Description |
---|---|
static class |
GeckoSession.PromptDelegate.FilePrompt.Capture
Possible capture attribute values.
|
static class |
GeckoSession.PromptDelegate.FilePrompt.Type
Types of file prompts.
|
Modifier and Type | Field and Description |
---|---|
int |
capture
One of
GeckoSession.PromptDelegate.FilePrompt.Capture indicating the capture attribute supplied by content. |
String[] |
mimeTypes
An array of Strings giving the MIME types specified by the "accept" attribute,
if any are specified.
|
int |
type
One of
GeckoSession.PromptDelegate.FilePrompt.Type indicating the prompt type. |
title
Modifier | Constructor and Description |
---|---|
protected |
FilePrompt(String title,
int type,
int capture,
String[] mimeTypes) |
Modifier and Type | Method and Description |
---|---|
GeckoSession.PromptDelegate.PromptResponse |
confirm(Context context,
Uri uri)
Confirms the prompt and passes the file URI back to content.
|
GeckoSession.PromptDelegate.PromptResponse |
confirm(Context context,
Uri[] uris)
Confirms the prompt and passes the file URIs back to content.
|
confirm, dismiss, isComplete
public final int type
GeckoSession.PromptDelegate.FilePrompt.Type
indicating the prompt type.@Nullable public final String[] mimeTypes
public final int capture
GeckoSession.PromptDelegate.FilePrompt.Capture
indicating the capture attribute supplied by content.@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull Context context, @NonNull Uri uri)
context
- An Application context for parsing URIs.uri
- The URI of the file chosen 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 Context context, @NonNull Uri[] uris)
context
- An Application context for parsing URIs.uris
- The URIs of the files chosen by the user.GeckoSession.PromptDelegate.PromptResponse
which can be used to complete
the GeckoResult
associated with this prompt.