downloadFile

abstract fun downloadFile(    remoteFile: RemoteFile,     path: File?,     progressHandler: MessageClient.ProgressHandler?,     completionHandler: CompletionHandler<<Error class: unknown class>>)

Downloads a file attachement asynchronously. See File Sharing for more details.

Since

1.4.0

Parameters

remoteFile

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.

progressHandler

The download progress indicator.

completionHandler

A closure to be executed when the download has completed. The URI contains the path to the downloaded file.