Language

DownloadManager.Request.SetMimeType(String) Method

Definition

Set the MIME content type of this download.

[Android.Runtime.Register("setMimeType", "(Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetSetMimeType_Ljava_lang_String_Handler")]
public virtual Android.App.DownloadManager.Request? SetMimeType(string? mimeType);
[<Android.Runtime.Register("setMimeType", "(Ljava/lang/String;)Landroid/app/DownloadManager$Request;", "GetSetMimeType_Ljava_lang_String_Handler")>]
abstract member SetMimeType : string -> Android.App.DownloadManager.Request
override this.SetMimeType : string -> Android.App.DownloadManager.Request

Parameters

mimeType
String

String

Returns

this object

Attributes

Remarks

Set the MIME content type of this download. This will override the content type declared in the server's response.

See also:

Android reference for android.app.DownloadManager.Request.setMimeType.

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