FileUploadCallback

This interface is used to provide callbacks for file upload operations.

This interface is used to provide callbacks for file upload operations.

onFileUploadProgress

This method will be invoked when a file upload operation is in progress.

Syntax: fun onFileUploadProgress(file: File, bytesUploaded: Long, bytesTotal: Long)

Parameters

ParametersTypeDescription
fileFileThe file is being uploaded.
bytesUploadedLongThe number of bytes uploaded so far.
bytesTotalLongThe total number of bytes in the file.

onFileUploadComplete

This method will be invoked when a file upload operation is complete.

Syntax: fun onFileUploadComplete(file: File, mediaId: String?, exception: WebexConnectException?)

Parameters

ParametersTypeDescription
fileFileThe file that was uploaded.
mediaIdStringThe media ID of the uploaded file.
exceptionWebexConnectExceptionAn exception that occurred during the upload, or null if the upload was successful.