kvision / pl.treksoft.kvision.cordova / FileWriter

FileWriter

external interface FileWriter : FileSaver

Properties

length

abstract var length: Number

position

abstract var position: Number

Inherited Properties

DONE

abstract var DONE: Number

error

abstract var error: Error

INIT

abstract var INIT: Number

onabort

abstract var onabort: (<ERROR CLASS>) -> Unit

onerror

abstract var onerror: (<ERROR CLASS>) -> Unit

onprogress

abstract var onprogress: (<ERROR CLASS>) -> Unit

onwrite

abstract var onwrite: (<ERROR CLASS>) -> Unit

onwriteend

abstract var onwriteend: (<ERROR CLASS>) -> Unit

onwritestart

abstract var onwritestart: (<ERROR CLASS>) -> Unit

readyState

abstract var readyState: Number

WRITING

abstract var WRITING: Number

Functions

seek

abstract fun seek(offset: Number): Unit

truncate

abstract fun truncate(size: Number): Unit

write

abstract fun write(data: <ERROR CLASS>): Unit

Inherited Functions

abort

abstract fun abort(): Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.