Share via


WebView.SetDownloadListener(IDownloadListener) Method

Definition

Registers the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead.

[Android.Runtime.Register("setDownloadListener", "(Landroid/webkit/DownloadListener;)V", "GetSetDownloadListener_Landroid_webkit_DownloadListener_Handler")]
public virtual void SetDownloadListener (Android.Webkit.IDownloadListener? listener);
[<Android.Runtime.Register("setDownloadListener", "(Landroid/webkit/DownloadListener;)V", "GetSetDownloadListener_Landroid_webkit_DownloadListener_Handler")>]
abstract member SetDownloadListener : Android.Webkit.IDownloadListener -> unit
override this.SetDownloadListener : Android.Webkit.IDownloadListener -> unit

Parameters

listener
IDownloadListener

an implementation of DownloadListener

Attributes

Remarks

Registers the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead. This will replace the current handler.

Java documentation for android.webkit.WebView.setDownloadListener(android.webkit.DownloadListener).

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