Interface ProgressCallback

  • All Implemented Interfaces:

    
    public interface ProgressCallback
    
                        

    Callback to listen for file upload status.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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(Error 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
    • Constructor Detail

    • Method Detail

      • onSuccess

         abstract Unit onSuccess(String url)

        Called when the attachment is uploaded successfully with an url.

      • onError

         abstract Unit onError(Error error)

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