Class CefriumBrowser.DownloadItem

java.lang.Object
com.cefrium.CefriumBrowser.DownloadItem
Enclosing class:
CefriumBrowser

public static final class CefriumBrowser.DownloadItem extends Object
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 Details

    • getId

      public int getId()
      Unique id of this download (stable for its lifetime).
    • getUrl

      public String getUrl()
    • getSuggestedName

      public String getSuggestedName()
    • getMimeType

      public String getMimeType()
    • getFullPath

      public String 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()
      CEF cef_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.