Partager via


IDownloadListener.OnDownloadStart Method

Definition

Notify the host application that a file should be downloaded

[Android.Runtime.Register("onDownloadStart", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V", "GetOnDownloadStart_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_JHandler:Android.Webkit.IDownloadListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnDownloadStart (string? url, string? userAgent, string? contentDisposition, string? mimetype, long contentLength);
[<Android.Runtime.Register("onDownloadStart", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V", "GetOnDownloadStart_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_JHandler:Android.Webkit.IDownloadListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnDownloadStart : string * string * string * string * int64 -> unit

Parameters

url
String

The full url to the content that should be downloaded

userAgent
String

the user agent to be used for the download.

contentDisposition
String

Content-disposition http header, if present.

mimetype
String

The mimetype of the content reported by the server

contentLength
Int64

The file size reported by the server

Attributes

Remarks

Notify the host application that a file should be downloaded

Java documentation for android.webkit.DownloadListener.onDownloadStart(java.lang.String, java.lang.String, java.lang.String, java.lang.String, 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