FileReader

JS
1.1
open class FileReader : EventTarget

Exposes the JavaScript FileReader to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript FileReader to Kotlin

FileReader()

Properties

JS
1.1

error

open val error: dynamic
JS
1.1

onabort

var onabort: ((Event) -> dynamic)?
JS
1.1

onerror

var onerror: ((Event) -> dynamic)?
JS
1.1

onload

var onload: ((Event) -> dynamic)?
JS
1.1

onloadend

var onloadend: ((Event) -> dynamic)?
JS
1.1

onloadstart

var onloadstart: ((ProgressEvent) -> dynamic)?
JS
1.1

onprogress

var onprogress: ((ProgressEvent) -> dynamic)?
JS
1.1

readyState

open val readyState: Short
JS
1.1

result

open val result: dynamic

Functions

JS
1.1

abort

fun abort()
JS
1.1

readAsArrayBuffer

fun readAsArrayBuffer(blob: Blob)
JS
1.1

readAsBinaryString

fun readAsBinaryString(blob: Blob)
JS
1.1

readAsDataURL

fun readAsDataURL(blob: Blob)
JS
1.1

readAsText

fun readAsText(blob: Blob, label: String = definedExternally)

Companion Object Properties

JS
1.1

DONE

val DONE: Short
JS
1.1

EMPTY

val EMPTY: Short
JS
1.1

LOADING

val LOADING: Short