download File
abstract fun downloadFile( remoteFile: RemoteFile, path: File?, progressHandler: MessageClient.ProgressHandler?, completionHandler: CompletionHandler<<Error class: unknown class>>)
Content copied to clipboard
Downloads a file attachement asynchronously. See File Sharing for more details.
Since
1.4.0
Parameters
remote File
The reference to the file attachment to be downloaded. Use @{link Message#getRemoteFiles()} to get the references.
path
The local file directory to save the remote file.
progress Handler
The download progress indicator.
completion Handler
A closure to be executed when the download has completed. The URI contains the path to the downloaded file.