Package 

Interface ProgressCallback

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSuccess(String url) Called when the attachment is uploaded successfully with an url.
      abstract Unit onError(ChatError error) Called when the attachment could not be uploaded due to cancellation, network problem or timeout etc with an error.
      abstract Unit onProgress(Long bytesUploaded, Long totalBytes) Called when the attachment upload is in progress with bytesUploaded count and totalBytes in bytes of the file.
      • Methods inherited from class java.lang.Object

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

      • onSuccess

         abstract Unit onSuccess(String url)

        Called when the attachment is uploaded successfully with an url.

      • onError

         abstract Unit onError(ChatError error)

        Called when the attachment could not be uploaded due to cancellation, network problem or timeout etc with an error.