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
| Parameters | Type | Description |
|---|---|---|
| file | File | The file is being uploaded. |
| bytesUploaded | Long | The number of bytes uploaded so far. |
| bytesTotal | Long | The 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
| Parameters | Type | Description |
|---|---|---|
| file | File | The file that was uploaded. |
| mediaId | String | The media ID of the uploaded file. |
| exception | WebexConnectException | An exception that occurred during the upload, or null if the upload was successful. |
Updated 8 months ago
