DownloadManager.GetUriForDownloadedFile(Int64) Method

Definition

Returns the Uri of the given downloaded file id, if the file is downloaded successfully.

[Android.Runtime.Register("getUriForDownloadedFile", "(J)Landroid/net/Uri;", "GetGetUriForDownloadedFile_JHandler")]
public virtual Android.Net.Uri? GetUriForDownloadedFile (long id);
[<Android.Runtime.Register("getUriForDownloadedFile", "(J)Landroid/net/Uri;", "GetGetUriForDownloadedFile_JHandler")>]
abstract member GetUriForDownloadedFile : int64 -> Android.Net.Uri
override this.GetUriForDownloadedFile : int64 -> Android.Net.Uri

Parameters

id
Int64

the id of the downloaded file.

Returns

Uri

the Uri of the given downloaded file id, if download was successful. null otherwise.

Attributes

Remarks

Returns the Uri of the given downloaded file id, if the file is downloaded successfully. Otherwise, null is returned.

Java documentation for android.app.DownloadManager.getUriForDownloadedFile(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to