DownloadManager.GetMimeTypeForDownloadedFile(Int64) Method

Definition

Returns the media type of the given downloaded file id, if the file was downloaded successfully.

[Android.Runtime.Register("getMimeTypeForDownloadedFile", "(J)Ljava/lang/String;", "GetGetMimeTypeForDownloadedFile_JHandler")]
public virtual string? GetMimeTypeForDownloadedFile (long id);
[<Android.Runtime.Register("getMimeTypeForDownloadedFile", "(J)Ljava/lang/String;", "GetGetMimeTypeForDownloadedFile_JHandler")>]
abstract member GetMimeTypeForDownloadedFile : int64 -> string
override this.GetMimeTypeForDownloadedFile : int64 -> string

Parameters

id
Int64

the id of the downloaded file.

Returns

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

Attributes

Remarks

Returns the media type of the given downloaded file id, if the file was downloaded successfully. Otherwise, null is returned.

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