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