public abstract class CefDownloadHandlerAdapter extends java.lang.Object implements CefDownloadHandler
| 构造器和说明 |
|---|
CefDownloadHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
在下载的状态或进度信息已更新时调用。 |
public void onBeforeDownload(CefBrowser browser, CefDownloadItem downloadItem, java.lang.String suggestedName, CefBeforeDownloadCallback callback)
CefDownloadHandler
onBeforeDownload 在接口中
CefDownloadHandler
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方法开始下载
public void onDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
CefDownloadHandler
onDownloadUpdated 在接口中
CefDownloadHandler
browser - The desired browser.
- 所需的浏览器。
downloadItem - The downloading item.
- 下载项目。
callback - Execute callback to cancel the download
- 执行回调以取消下载