KFile

data class KFile(name: String, size: Int, content: String?)

A serializable class for a fullstack File type.

Constructors

Link copied to clipboard
fun KFile(name: String, size: Int, content: String? = null)

Properties

Link copied to clipboard
val content: String? = null
Link copied to clipboard
val name: String
Link copied to clipboard
val size: Int

Extensions

Link copied to clipboard
val KFile.base64Encoded: String?

Decode the Base64 encoded content from the data uri string contained in the KFile object.

Link copied to clipboard
val KFile.contentType: String?

Decode the content-type from the data uri string contained in the KFile object.