-
public interface ProgressCallbackCallback to listen for file upload status.
-
-
Method Summary
Modifier and Type Method Description UnitonSuccess(String url)Called when a file is uploaded successfully with an url. UnitonError(Error error)Called when a file could not be uploaded due to cancellation, network problem or timeout etc with an error. UnitonProgress(Long bytesUploaded, Long totalBytes)Called when the file upload is in progress with bytesUploaded count and totalBytes in bytes of the file. -
-
Method Detail
-
onError
Unit onError(Error error)
Called when a file could not be uploaded due to cancellation, network problem or timeout etc with an error.
-
onProgress
Unit onProgress(Long bytesUploaded, Long totalBytes)
Called when the file upload is in progress with bytesUploaded count and totalBytes in bytes of the file.
-
-
-
-