Android.App.DownloadManager.AddCompletedDownload Method
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).

Syntax

[Android.Runtime.Register("addCompletedDownload", "(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;JZ)J", "GetAddCompletedDownload_Ljava_lang_String_Ljava_lang_String_ZLjava_lang_String_Ljava_lang_String_JZHandler")]
public virtual long AddCompletedDownload (string title, string description, bool isMediaScannerScannable, string mimeType, string path, long length, bool showNotification)

Parameters

title
the title that would appear for this file in Downloads App.
description
the description that would appear for this file in Downloads App.
isMediaScannerScannable
true if the file is to be scanned by MediaScanner. Files scanned by MediaScanner appear in the applications used to view media (for example, Gallery app).
mimeType
mimetype of the file.
path
absolute pathname to the file. The file should be world-readable, so that it can be managed by the Downloads App and any other app that is used to read it (for example, Gallery app to display the file, if the file contents represent a video/image).
length
length of the downloaded file
showNotification
true if a notification is to be sent, false otherwise

Returns

Documentation for this section has not yet been entered.

Remarks

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).

It is helpful to make the file scannable by MediaScanner by setting the param isMediaScannerScannable to true. It makes the file visible in media managing applications such as Gallery App, which could be a useful purpose of using this API.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12