FileReader

open external class FileReader : EventTarget (source)

Platform and version requirements: JS

Exposes the JavaScript FileReader to Kotlin

Constructors

<init>

FileReader()

Exposes the JavaScript FileReader to Kotlin

Properties

error

open val error: dynamic

onabort

var onabort: (Event) -> dynamic

onerror

var onerror: (Event) -> dynamic

onload

var onload: (Event) -> dynamic

onloadend

var onloadend: (Event) -> dynamic

onloadstart

var onloadstart: (Event) -> dynamic

onprogress

var onprogress: (Event) -> dynamic

readyState

open val readyState: Short

result

open val result: dynamic

Functions

abort

fun abort()

readAsArrayBuffer

fun readAsArrayBuffer(blob: Blob)

readAsBinaryString

fun readAsBinaryString(blob: Blob)

readAsDataURL

fun readAsDataURL(blob: Blob)

readAsText

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

Inherited Functions

addEventListener

fun addEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun addEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

dispatchEvent

fun dispatchEvent(event: Event): Boolean

removeEventListener

fun removeEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun removeEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

Companion Object Properties

DONE

val DONE: Short

EMPTY

val EMPTY: Short

LOADING

val LOADING: Short