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