Interface ProgressCallback
-
- All Implemented Interfaces:
public interface ProgressCallbackCallback to listen for file upload status.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonSuccess(String url)Called when the attachment is uploaded successfully with an url. abstract UnitonError(Error error)Called when the attachment could not be uploaded due to cancellation, network problem or timeout etc with an error. abstract UnitonProgress(Long bytesUploaded, Long totalBytes)Called when the attachment upload is in progress with bytesUploaded count and totalBytes in bytes of the file. -
-
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.
-
onProgress
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.
-
-
-
-