Package 

Interface EmojiPackDownloadListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onProgress(Long bytesRead, Long contentLength) Called throughout the download to update the current download progress.
      abstract Unit onFailure(IOException e) Called when the download went wrong.
      abstract Unit onCancelled() Called when the download has been cancelled
      abstract Unit onDone() Called when the download has been successfully executed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onProgress

         abstract Unit onProgress(Long bytesRead, Long contentLength)

        Called throughout the download to update the current download progress.

        Parameters:
        bytesRead - How many bytes have already been downloaded (in total).
        contentLength - How many bytes in total need to be downloaded.
      • onCancelled

         abstract Unit onCancelled()

        Called when the download has been cancelled

      • onDone

         abstract Unit onDone()

        Called when the download has been successfully executed. Might not be called at all, if the download has been cancelled.