LocalFile

class LocalFile

A data type represents a local file.

Since

1.4.0

Constructors

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

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

constructor()

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

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

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

Return the thumbnail for the local file.