Package-level declarations

Kotlin JavaScript wrappers for the W3C file API.

Types

Link copied to clipboard
open external class Blob(blobParts: Array<dynamic> = definedExternally, options: BlobPropertyBag = definedExternally) : MediaProvider, ImageBitmapSource

Exposes the JavaScript Blob to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface BlobPropertyBag
Since Kotlin 1.1
Link copied to clipboard
open external class File(fileBits: Array<dynamic>, fileName: String, options: FilePropertyBag = definedExternally) : Blob

Exposes the JavaScript File to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class FileList : ItemArrayLike<File>

Exposes the JavaScript FileList to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface FilePropertyBag : BlobPropertyBag
Since Kotlin 1.1
Link copied to clipboard
open external class FileReader : EventTarget

Exposes the JavaScript FileReader to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class FileReaderSync

Exposes the JavaScript FileReaderSync to Kotlin

Since Kotlin 1.1

Functions

Link copied to clipboard
inline fun BlobPropertyBag(type: String? = ""): BlobPropertyBag
Since Kotlin 1.1
Link copied to clipboard
inline fun FilePropertyBag(lastModified: Int? = undefined, type: String? = ""): FilePropertyBag
Since Kotlin 1.1
Link copied to clipboard
inline operator fun FileList.get(index: Int): File?
Since Kotlin 1.1