public interface CefDownloadHandler
限定符和类型 | 方法和说明 |
---|---|
void |
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.
(当下载状态或进度信息已更新时调用。)
|
void 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 method
(-通过调用Continue方法开始下载)
void onDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
browser
- The desired browser.
(-所需的浏览器。)
downloadItem
- The downloading item.
(-下载项目。)
callback
- Execute callback to cancel the download
(-执行回调以取消下载)