ProgressCallback

Callback to listen for file upload status.

Functions

Link copied to clipboard
open fun onError(error: Error)

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

Link copied to clipboard
open fun onProgress(bytesUploaded: Long, totalBytes: Long)

Called when the file upload is in progress with bytesUploaded count and totalBytes in bytes of the file.

Link copied to clipboard
open fun onSuccess(url: String?)

Called when a file is uploaded successfully with an url.