From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-download-item/index.html | 305 +++++++++++++++++++++ 1 file changed, 305 insertions(+) create mode 100644 api1/pl.treksoft.kvision.electron/-download-item/index.html (limited to 'api1/pl.treksoft.kvision.electron/-download-item/index.html') diff --git a/api1/pl.treksoft.kvision.electron/-download-item/index.html b/api1/pl.treksoft.kvision.electron/-download-item/index.html new file mode 100644 index 00000000..9082c3cf --- /dev/null +++ b/api1/pl.treksoft.kvision.electron/-download-item/index.html @@ -0,0 +1,305 @@ + + + +DownloadItem - kvision + + + +kvision / pl.treksoft.kvision.electron / DownloadItem
+
+

DownloadItem

+open external class DownloadItem : EventEmitter +

Constructors

+ + + + + + + +
+

<init>

+
+DownloadItem()
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addListener

+
+open fun addListener(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+open fun addListener(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+

cancel

+
+open fun cancel(): Unit
+

canResume

+
+open fun canResume(): Boolean
+

getContentDisposition

+
+open fun getContentDisposition(): String
+

getETag

+
+open fun getETag(): String
+

getFilename

+
+open fun getFilename(): String
+

getLastModifiedTime

+
+open fun getLastModifiedTime(): String
+

getMimeType

+
+open fun getMimeType(): String
+

getReceivedBytes

+
+open fun getReceivedBytes(): Number
+

getSavePath

+
+open fun getSavePath(): String
+

getStartTime

+
+open fun getStartTime(): Number
+

getState

+
+open fun getState(): dynamic
+

getTotalBytes

+
+open fun getTotalBytes(): Number
+

getURL

+
+open fun getURL(): String
+

getURLChain

+
+open fun getURLChain(): Array<String>
+

hasUserGesture

+
+open fun hasUserGesture(): Boolean
+

isPaused

+
+open fun isPaused(): Boolean
+

on

+
+open fun on(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+open fun on(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+

once

+
+open fun once(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+open fun once(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+

pause

+
+open fun pause(): Unit
+

removeListener

+
+open fun removeListener(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+open fun removeListener(event: String, listener: (event: Event, dynamic) -> Unit): DownloadItem
+

resume

+
+open fun resume(): Unit
+

setSavePath

+
+open fun setSavePath(path: String): Unit
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addListener

+
+open fun addListener(event: String, listener: Function<*>): EventEmitter
+

emit

+
+open fun emit(event: String, vararg args: Any): Boolean
+

eventNames

+
+open fun eventNames(): Array<String>
+

getMaxListeners

+
+open fun getMaxListeners(): Number
+

listenerCount

+
+open fun listenerCount(type: String): Number
+

listeners

+
+open fun listeners(event: String): Array<Function<*>>
+

on

+
+open fun on(event: String, listener: Function<*>): EventEmitter
+

once

+
+open fun once(event: String, listener: Function<*>): EventEmitter
+

prependListener

+
+open fun prependListener(event: String, listener: Function<*>): EventEmitter
+

prependOnceListener

+
+open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter
+

removeAllListeners

+
+open fun removeAllListeners(event: String? = definedExternally): EventEmitter
+

removeListener

+
+open fun removeListener(event: String, listener: Function<*>): EventEmitter
+

setMaxListeners

+
+open fun setMaxListeners(n: Number): EventEmitter
+

Extension Functions

+ + + + + + + +
+

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit