kvision / pl.treksoft.kvision.electron / DownloadItem

DownloadItem

(js) open class DownloadItem : EventEmitter

Constructors

(js)

<init>

DownloadItem()

Functions

(js)

addListener

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

cancel

open fun cancel(): Unit
(js)

canResume

open fun canResume(): Boolean
(js)

getContentDisposition

open fun getContentDisposition(): String
(js)

getETag

open fun getETag(): String
(js)

getFilename

open fun getFilename(): String
(js)

getLastModifiedTime

open fun getLastModifiedTime(): String
(js)

getMimeType

open fun getMimeType(): String
(js)

getReceivedBytes

open fun getReceivedBytes(): Number
(js)

getSavePath

open fun getSavePath(): String
(js)

getStartTime

open fun getStartTime(): Number
(js)

getState

open fun getState(): dynamic
(js)

getTotalBytes

open fun getTotalBytes(): Number
(js)

getURL

open fun getURL(): String
(js)

getURLChain

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

hasUserGesture

open fun hasUserGesture(): Boolean
(js)

isPaused

open fun isPaused(): Boolean
(js)

on

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

once

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

pause

open fun pause(): Unit
(js)

removeListener

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

resume

open fun resume(): Unit
(js)

setSavePath

open fun setSavePath(path: String): Unit