Class FileProgress.Adapter

    • Constructor Detail

      • Adapter

        public Adapter()
    • Method Detail

      • transferred

        public void transferred​(long count)
        Description copied from interface: FileProgress
        Increases total downloaded size by count
        Specified by:
        transferred in interface FileProgress
        Parameters:
        count - downloaded bytes
      • setExpectedLength

        public void setExpectedLength​(long expectedLength)
        Description copied from interface: FileProgress
        Sets expected total size
        Specified by:
        setExpectedLength in interface FileProgress
        Parameters:
        expectedLength - - expected length of the file
      • getTransferred

        public long getTransferred()
        Specified by:
        getTransferred in interface FileProgress
        Returns:
        downloaded bytes (if tracked by retriever)
      • cantDownloadFile

        public void cantDownloadFile()
        Description copied from interface: FileProgress
        Notifies progress that current retriever can't download this file
        Specified by:
        cantDownloadFile in interface FileProgress
      • fileDownloaded

        public void fileDownloaded()
        Description copied from interface: FileProgress
        Notifies progress that this file is downloaded
        Specified by:
        fileDownloaded in interface FileProgress
      • errorOccurred

        public void errorOccurred​(java.lang.Throwable e)
        Description copied from interface: FileProgress
        Notifies progress that an error occurred during download
        Specified by:
        errorOccurred in interface FileProgress
        Parameters:
        e - - an error occurred during download