Class CefriumBrowser.DownloadItem
java.lang.Object
com.cefrium.CefriumBrowser.DownloadItem
- Enclosing class:
CefriumBrowser
Snapshot of a download plus in-progress controls. Mirrors the getters of
CEF's
CefDownloadItem. The control methods are no-ops once the
download has completed or been canceled.-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel this download.longCurrent speed in bytes/second.Target path on disk (may be empty before the download starts).intgetId()Unique id of this download (stable for its lifetime).intCEFcef_download_interrupt_reason_t(0 = none).intlonglonggetUrl()booleanbooleanbooleanisPaused()voidpause()Pause this download.voidresume()Resume a paused download.
-
Method Details
-
getId
public int getId()Unique id of this download (stable for its lifetime). -
getUrl
-
getSuggestedName
-
getMimeType
-
getFullPath
Target path on disk (may be empty before the download starts). -
getTotalBytes
public long getTotalBytes() -
getReceivedBytes
public long getReceivedBytes() -
getCurrentSpeed
public long getCurrentSpeed()Current speed in bytes/second. -
getPercentComplete
public int getPercentComplete() -
isComplete
public boolean isComplete() -
isCanceled
public boolean isCanceled() -
isPaused
public boolean isPaused() -
getInterruptReason
public int getInterruptReason()CEFcef_download_interrupt_reason_t(0 = none). -
cancel
public void cancel()Cancel this download. -
pause
public void pause()Pause this download. -
resume
public void resume()Resume a paused download.
-