kvision / pl.treksoft.kvision.electron / AutoUpdater

AutoUpdater

external interface AutoUpdater : EventEmitter

Functions

addListener

abstract fun addListener(event: String, listener: Function<*>): AutoUpdater
abstract fun addListener(event: String, listener: (Error) -> Unit): AutoUpdater
abstract fun addListener(event: String, listener: Function<*>): AutoUpdater
abstract fun addListener(event: String, listener: (event: Event, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit): AutoUpdater
abstract fun addListener(event: String, listener: Function<*>): AutoUpdater

checkForUpdates

abstract fun checkForUpdates(): Unit

getFeedURL

abstract fun getFeedURL(): String

on

abstract fun on(event: String, listener: Function<*>): AutoUpdater
abstract fun on(event: String, listener: (Error) -> Unit): AutoUpdater
abstract fun on(event: String, listener: Function<*>): AutoUpdater
abstract fun on(event: String, listener: (event: Event, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit): AutoUpdater
abstract fun on(event: String, listener: Function<*>): AutoUpdater

once

abstract fun once(event: String, listener: Function<*>): AutoUpdater
abstract fun once(event: String, listener: (Error) -> Unit): AutoUpdater
abstract fun once(event: String, listener: Function<*>): AutoUpdater
abstract fun once(event: String, listener: (event: Event, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit): AutoUpdater
abstract fun once(event: String, listener: Function<*>): AutoUpdater

quitAndInstall

abstract fun quitAndInstall(): Unit

removeListener

abstract fun removeListener(event: String, listener: Function<*>): AutoUpdater
abstract fun removeListener(event: String, listener: (Error) -> Unit): AutoUpdater
abstract fun removeListener(event: String, listener: Function<*>): AutoUpdater
abstract fun removeListener(event: String, listener: (event: Event, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit): AutoUpdater
abstract fun removeListener(event: String, listener: Function<*>): AutoUpdater

setFeedURL

abstract fun setFeedURL(options: FeedURLOptions): Unit

Inherited Functions

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<*>>

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

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.