FileDownloadCallback

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

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

Functions

FunctionsDescription
onFileDownloadProgressThis method will be invoked when a file download operation is in progress.
onFileDownloadCompleteThis method will be invoked when a file download operation is complete.

onFileDownloadProgress

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

Syntax:fun onFileDownloadProgress(url: URL, bytesDownloaded: Long, bytesTotal: Long)

ParametersTypeDescription
urlURLThe URL of the file being downloaded.
bytesDownloadedLongThe number of bytes downloaded so far.
bytesTotalLongThe total number of bytes in the file.

onFileDownloadComplete

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

Syntax: fun onFileDownloadComplete(url: URL, file: File?, exception: WebexConnectException?)

Parameters

ParametersTypeDescription
urlURLThe URL of the file that was downloaded.
fileFileThe file that was downloaded.
exceptionWebexConnectExceptionAn exception that occurred during the download, or null if the download was successful.