public interface CefDownloadHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
onBeforeDownload(CefBrowser browser,
CefDownloadItem downloadItem,
java.lang.String suggestedName,
CefBeforeDownloadCallback callback)
Called before a download begins.
|
void |
onDownloadUpdated(CefBrowser browser,
CefDownloadItem downloadItem,
CefDownloadItemCallback callback)
Called when a download's status or progress information has been updated.
|
boolean onBeforeDownload(CefBrowser browser, CefDownloadItem downloadItem, java.lang.String suggestedName, CefBeforeDownloadCallback callback)
browser - The desired browser.downloadItem - The item to be downloaded. Do not keep a reference to it outside this
method.suggestedName - is the suggested name for the download file.callback - start the download by calling the Continue methodvoid onDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
browser - The desired browser.downloadItem - The downloading item.callback - Execute callback to cancel the download