FileDownloadCallback
This interface is used to provide callbacks for file download operations.
This interface is used to provide callbacks for file download operations.
Functions
Functions | Description |
---|---|
onFileDownloadProgress | This method will be invoked when a file download operation is in progress. |
onFileDownloadComplete | This 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)
Parameters | Type | Description |
---|---|---|
url | URL | The URL of the file being downloaded. |
bytesDownloaded | Long | The number of bytes downloaded so far. |
bytesTotal | Long | The 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
Parameters | Type | Description |
---|---|---|
url | URL | The URL of the file that was downloaded. |
file | File | The file that was downloaded. |
exception | WebexConnectException | An exception that occurred during the download, or null if the download was successful. |
Updated about 1 month ago