LocalFile

fun LocalFile(    file: File,     mime: String?,     thumbnail: LocalFile.Thumbnail?,     progressHandler: MessageClient.ProgressHandler?)

Constructs a LocalFile object out of a local java.io.File.

Since

2.1.0

Parameters

file

An existing local file.

mime

The MIME type of the file, according to RFC6838.

thumbnail

The thumbnail for the local file. If not null, the thumbnail will be uploaded with the local file.

progressHandler

The progress indicator callback for uploading progresses.


fun LocalFile()