public interface CefDownloadHandler
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void onBeforeDownload(CefBrowser browser, CefDownloadItem downloadItem, 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 downloadCopyright © 2017. All rights reserved.