LocalFile

class LocalFile

A data type represents a local file.

Since

1.4.0

Constructors

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

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

Link copied to clipboard
fun LocalFile()

Types

Link copied to clipboard
class Thumbnail

A data type represents a thumbnail of this local file.

Functions

Link copied to clipboard
fun getFile(): File?

Returns the local java.io.File object to be uploaded.

Link copied to clipboard
fun getMimeType(): String?

Returns the MIME type of this file.

Link copied to clipboard
fun getName(): String?

Returns the display name of the uploaded file.

Link copied to clipboard
fun getPath(): String?

Returns the local path to the file to be uploaded..

Link copied to clipboard
fun getProgressHandler(): MessageClient.ProgressHandler?

Returns the MessageClient.ProgressHandler used when uploading this file.

Link copied to clipboard
fun getSize(): Long

Returns the size in bytes of the file.

Link copied to clipboard
fun getThumbnail(): LocalFile.Thumbnail?

Return the thumbnail for the local file.