ProgressCallback

Callback to listen for file upload status.

Functions

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

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

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

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

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

Called when the attachment is uploaded successfully with an url.