DownloadManager.OpenDownloadedFile(Int64) Method

Definition

Open a downloaded file for reading.

[Android.Runtime.Register("openDownloadedFile", "(J)Landroid/os/ParcelFileDescriptor;", "GetOpenDownloadedFile_JHandler")]
public virtual Android.OS.ParcelFileDescriptor? OpenDownloadedFile (long id);
[<Android.Runtime.Register("openDownloadedFile", "(J)Landroid/os/ParcelFileDescriptor;", "GetOpenDownloadedFile_JHandler")>]
abstract member OpenDownloadedFile : int64 -> Android.OS.ParcelFileDescriptor
override this.OpenDownloadedFile : int64 -> Android.OS.ParcelFileDescriptor

Parameters

id
Int64

the ID of the download

Returns

a read-only ParcelFileDescriptor

Attributes

Exceptions

if the destination file does not already exist

Remarks

Open a downloaded file for reading. The download must have completed.

Java documentation for android.app.DownloadManager.openDownloadedFile(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