public static interface IDownloadManager.IRequest
Modifier and Type | Interface and Description |
---|---|
static interface |
IDownloadManager.IRequest.Visibility
The list of possible visibility states.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets the description of this download, to be displayed in notifications (if enabled)
|
long |
getEstimatedSize()
Gets the estimated total size of the download as number of bytes.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Gets the list of headers to the send in HTTP request.
|
android.net.Uri |
getLocalUri()
Gets the local destination for the downloaded file.
|
java.lang.String |
getMimeType()
Gets the MIME content type of this download.
|
int |
getNotificationVisibility()
Specifies whether a system notification is posted by the download manager while this
download is running or when it is completed.
|
android.net.Uri |
getRemoteUri()
Gets the URL to the remote file.
|
java.lang.String |
getTitle()
Gets the title of this download, to be displayed in notifications (if enabled).
|
boolean |
isAllowedOverBluetooth()
Specifies whether this download may proceed over a bluetooth network connection.
|
boolean |
isAllowedOverMetered()
Specifies whether this download may proceed over a metered network connection.
|
boolean |
isAllowedOverMobile()
Specifies whether this download may proceed over a mobile network connection.
|
boolean |
isAllowedOverRoaming()
Specifies whether this download may proceed over a roaming connection.
|
boolean |
isAllowedOverWifi()
Specifies whether this download may proceed over a WIFI network connection.
|
boolean |
isAllowScanningByMediaScanner()
Specifies whether the file to be downloaded should be marked as scannable by MediaScanner.
|
boolean |
isVisibleInDownloadsUi()
Gets whether this download should be displayed in the system's Downloads UI.
|
@NonNull android.net.Uri getRemoteUri()
@Nullable android.net.Uri getLocalUri()
@Nullable java.lang.String getMimeType()
@Nullable java.util.Map<java.lang.String,java.lang.String> getHeaders()
long getEstimatedSize()
@Nullable java.lang.String getTitle()
@Nullable java.lang.String getDescription()
boolean isAllowScanningByMediaScanner()
boolean isAllowedOverMobile()
boolean isAllowedOverWifi()
boolean isAllowedOverBluetooth()
boolean isAllowedOverRoaming()
boolean isAllowedOverMetered()
boolean isVisibleInDownloadsUi()
int getNotificationVisibility()