DownloadHandlerOnBeforeDownload Method |
Version 130.1.90
Called before a download begins.
Namespace: CefSharp.FluentAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax protected override bool OnBeforeDownload(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
DownloadItem downloadItem,
IBeforeDownloadCallback callback
)
protected:
virtual bool OnBeforeDownload(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
DownloadItem^ downloadItem,
IBeforeDownloadCallback^ callback
) override
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
BooleanReturn 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