Android.App.DownloadManager Members

The members of Android.App.DownloadManager are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
ActionDownloadCompletestring. Broadcast intent action sent by the download manager when a download completes.
const
ActionNotificationClickedstring. Broadcast intent action sent by the download manager when the user clicks on a running download, either from a system notification or from the downloads UI.
const
ActionViewDownloadsstring. Intent action to launch an activity to display all downloads.
const
ColumnBytesDownloadedSoFarstring. Number of bytes download so far.
const
ColumnDescriptionstring. The client-supplied description of this download.
const
ColumnIdstring. An identifier for a particular download, unique across the system.
const
ColumnLastModifiedTimestampstring. Timestamp when the download was last modified, in Java.Lang.JavaSystem.CurrentTimeMillis (wall clock time in UTC).
const
ColumnLocalFilenamestring. The pathname of the file where the download is stored.
const
ColumnLocalUristring. Uri where downloaded file will be stored.
const
ColumnMediaproviderUristring. The URI to the corresponding entry in MediaProvider for this downloaded entry.
const
ColumnMediaTypestring. Internet Media Type of the downloaded file.
const
ColumnReasonstring. Provides more detail on the status of the download.
const
ColumnStatusstring. Current status of the download, as one of the STATUS_* constants.
const
ColumnTitlestring. The client-supplied title for this download.
const
ColumnTotalSizeBytesstring. Total size of the download in bytes.
const
ColumnUristring. URI to be downloaded.
const
ErrorCannotResumeDownloadError (1008). Value of DownloadManager.ColumnReason when some possibly transient error occurred but we can't resume the download.
const
ErrorDeviceNotFoundDownloadError (1007). Value of DownloadManager.ColumnReason when no external storage device was found.
const
ErrorFileAlreadyExistsDownloadError (1009). Value of DownloadManager.ColumnReason when the requested destination file already exists (the download manager will not overwrite an existing file).
const
ErrorFileErrorDownloadError (1001). Value of DownloadManager.ColumnReason when a storage issue arises which doesn't fit under any other error code.
const
ErrorHttpDataErrorDownloadError (1004). Value of DownloadManager.ColumnReason when an error receiving or processing data occurred at the HTTP level.
const
ErrorInsufficientSpaceDownloadError (1006). Value of DownloadManager.ColumnReason when there was insufficient storage space.
const
ErrorTooManyRedirectsDownloadError (1005). Value of DownloadManager.ColumnReason when there were too many redirects.
const
ErrorUnhandledHttpCodeDownloadError (1002). Value of DownloadManager.ColumnReason when an HTTP code was received that download manager can't handle.
const
ErrorUnknownDownloadError (1000). Value of COLUMN_ERROR_CODE when the download has completed with an error that doesn't fit under any other error code.
const
ExtraDownloadIdstring. Intent extra included with DownloadManager.ActionDownloadComplete intents, indicating the ID (as a long) of the download that just completed.
const
ExtraNotificationClickDownloadIdsstring. When clicks on multiple notifications are received, the following provides an array of download ids corresponding to the download notification that was clicked.
const
IntentExtrasSortBySizestring. Intent extra included with DownloadManager.ActionViewDownloads to start DownloadApp in sort-by-size mode.
const
PausedQueuedForWifiDownloadPausedReason (3). Value of DownloadManager.ColumnReason when the download exceeds a size limit for downloads over the mobile network and the download manager is waiting for a Wi-Fi connection to proceed.
const
PausedUnknownDownloadPausedReason (4). Value of DownloadManager.ColumnReason when the download is paused for some other reason.
const
PausedWaitingForNetworkDownloadPausedReason (2). Value of DownloadManager.ColumnReason when the download is waiting for network connectivity to proceed.
const
PausedWaitingToRetryDownloadPausedReason (1). Value of DownloadManager.ColumnReason when the download is paused because some network error occurred and the download manager is waiting before retrying the request.
const
StatusFailedDownloadStatus (16). Value of DownloadManager.ColumnStatus when the download has failed (and will not be retried).
const
StatusPausedDownloadStatus (4). Value of DownloadManager.ColumnStatus when the download is waiting to retry or resume.
const
StatusPendingDownloadStatus (1). Value of DownloadManager.ColumnStatus when the download is waiting to start.
const
StatusRunningDownloadStatus (2). Value of DownloadManager.ColumnStatus when the download is currently running.
const
StatusSuccessfulDownloadStatus (8). Value of DownloadManager.ColumnStatus when the download has successfully completed.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddCompletedDownload(string, string, bool, string, string, long, bool) : long
Adds a file to the downloads database system, so it could appear in Downloads App (and thus become eligible for management by the Downloads App).
Enqueue(DownloadManager.Request) : long
Enqueue a new download.
static
FromContext(Android.Content.Context) : DownloadManager
Documentation for this section has not yet been entered.
static
GetMaxBytesOverMobile(Android.Content.Context) : Java.Lang.Long
Returns maximum size, in bytes, of downloads that may go over a mobile connection; or null if there's no limit
GetMimeTypeForDownloadedFile(long) : string
Returns the media type of the given downloaded file id, if the file was downloaded successfully.
static
GetRecommendedMaxBytesOverMobile(Android.Content.Context) : Java.Lang.Long
Returns recommended maximum size, in bytes, of downloads that may go over a mobile connection; or null if there's no recommended limit.
GetUriForDownloadedFile(long) : Android.Net.Uri
Returns the Android.Net.Uri of the given downloaded file id, if the file is downloaded successfully.
InvokeQuery(DownloadManager.Query) : Android.Database.ICursor
Query the download manager about downloads that have been requested.
OpenDownloadedFile(long) : Android.OS.ParcelFileDescriptor
Open a downloaded file for reading.
Remove(params long[]) : int
Documentation for this section has not yet been entered.