Package-level declarations

Kotlin JavaScript wrappers for the W3C file API.

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
open external class Blob(blobParts: JsArray<JsAny?> = definedExternally, options: BlobPropertyBag = definedExternally) : MediaProvider, ImageBitmapSource, JsAny

Exposes the JavaScript Blob to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface BlobPropertyBag
Since Kotlin 1.1
external interface BlobPropertyBag : JsAny
Since Kotlin 1.8
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
open external class File(fileBits: JsArray<JsAny?>, fileName: String, options: FilePropertyBag = definedExternally) : Blob, JsAny

Exposes the JavaScript File to Kotlin

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

Exposes the JavaScript FileList to Kotlin

Since Kotlin 1.1
abstract external class FileList : ItemArrayLike<File> , JsAny

Exposes the JavaScript FileList to Kotlin

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

Exposes the JavaScript FileReader to Kotlin

Since Kotlin 1.1
open external class FileReader : EventTarget, JsAny

Exposes the JavaScript FileReader to Kotlin

Since Kotlin 1.8
Link copied to clipboard
open external class FileReaderSync

Exposes the JavaScript FileReaderSync to Kotlin

Since Kotlin 1.1
open external class FileReaderSync : JsAny

Exposes the JavaScript FileReaderSync to Kotlin

Since Kotlin 1.8

Functions

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