public abstract class CefDownloadHandlerAdapter extends Object implements CefDownloadHandler
| 构造器和说明 |
|---|
CefDownloadHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onBeforeDownload(CefBrowser browser,
CefDownloadItem downloadItem,
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, String suggestedName, CefBeforeDownloadCallback callback)
CefDownloadHandleronBeforeDownload 在接口中 CefDownloadHandlerbrowser - 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 methodpublic void onDownloadUpdated(CefBrowser browser, CefDownloadItem downloadItem, CefDownloadItemCallback callback)
CefDownloadHandleronDownloadUpdated 在接口中 CefDownloadHandlerbrowser - The desired browser.downloadItem - The downloading item.callback - Execute callback to cancel the downloadCopyright © 2017. All rights reserved.