public static class WebExtension.DownloadRequest extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowHttpErrors
Flag that enables downloads to continue even if they encounter HTTP errors.
|
static int |
CONFLICT_ACTION_OVERWRITE
The app should overwrite the old file with the newly-downloaded file
|
static int |
CONFLICT_ACTION_PROMPT
The app should prompt the user, asking them to choose whether to uniquify or overwrite
|
static int |
CONFLICT_ACTION_UNIQUIFY
The app should modify the filename to make it unique
|
int |
conflictActionFlag
The action you want taken if there is a filename conflict, as defined
here
|
int |
downloadFlags
Optional fetch flags for
GeckoWebExecutor |
String |
filename
A file path relative to the default downloads directory
|
WebRequest |
request
Regular GeckoView
WebRequest object |
boolean |
saveAs
Specifies whether to provide a file chooser dialog to allow
the user to select a filename (true), or not (false)
|
Modifier | Constructor and Description |
---|---|
protected |
DownloadRequest(org.mozilla.geckoview.WebExtension.DownloadRequest.Builder builder) |
@NonNull public final WebRequest request
WebRequest
objectpublic final int downloadFlags
GeckoWebExecutor
@Nullable public final String filename
public final int conflictActionFlag
public final boolean saveAs
public final boolean allowHttpErrors
public static final int CONFLICT_ACTION_UNIQUIFY
public static final int CONFLICT_ACTION_OVERWRITE
public static final int CONFLICT_ACTION_PROMPT