Interface DataFetchProgressListener

  • All Known Implementing Classes:
    IdleDataFetchProgressListener

    public interface DataFetchProgressListener
    Since:
    4.0.0
    Author:
    Torsten Krause (tk at markenwerk dot net)
    • Method Detail

      • onStarted

        void onStarted()
        Indicates that the process of fetching bytes from an InputStream has started.
      • onProgress

        void onProgress​(long bytesFetched)
        Indicates that the process of fetching bytes from an InputStream has progressed.

        The progress will only be reported if the DataFetcher is capable of monitoring the progress.

        Parameters:
        bytesFetched - Total amount of bytes fetched so far.
      • onSuccedded

        void onSuccedded​(Long bytesFetched)
        Indicates that the process of fetching bytes from an InputStream has succeeded.
        Parameters:
        bytesFetched - Total total amount of bytes fetched or null, if the DataFetcher is not capable of monitoring the progress.