FileReader

open external class FileReader : EventTarget

Exposes the JavaScript FileReader to Kotlin

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun abort()
Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun readAsDataURL(blob: Blob)
Link copied to clipboard
fun readAsText(blob: Blob, label: String = definedExternally)
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)

Properties

Link copied to clipboard
open val error: dynamic
Link copied to clipboard
var onabort: (Event) -> dynamic?
Link copied to clipboard
var onerror: (Event) -> dynamic?
Link copied to clipboard
var onload: (Event) -> dynamic?
Link copied to clipboard
var onloadend: (Event) -> dynamic?
Link copied to clipboard
var onloadstart: (ProgressEvent) -> dynamic?
Link copied to clipboard
var onprogress: (ProgressEvent) -> dynamic?
Link copied to clipboard
open val readyState: Short
Link copied to clipboard
open val result: dynamic