Click or drag to resize

DownloadHandlerOnBeforeDownload Method

Version 130.1.90
Called before a download begins.

Namespace: CefSharp.Fluent
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
protected override bool OnBeforeDownload(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	DownloadItem downloadItem,
	IBeforeDownloadCallback callback
)

Parameters

chromiumWebBrowser  IWebBrowser
the ChromiumWebBrowser control
browser  IBrowser
The browser instance
downloadItem  DownloadItem
Represents the file being downloaded.
callback  IBeforeDownloadCallback
Callback interface used to asynchronously continue a download.

Return Value

Boolean
Return true and execute callback either asynchronously or in this method to continue or cancel the download. Return false to proceed with default handling (cancel with Alloy style, download shelf with Chrome style).
See Also