AutoUpdater
Functions
Link copied to clipboard
abstract fun addListener(event: AutoUpdaterEvent.UPDATE_DOWNLOADED, listener: (event: Event<*>, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit)
Link copied to clipboard
Asks the server whether there is an update. You must call setFeedURL
before using this API.
Link copied to clipboard
Link copied to clipboard
The current update feed URL.
Link copied to clipboard
Link copied to clipboard
This event is emitted after a user calls quitAndInstall()
.
Emitted when checking if an update has started.
Emitted when there is an error while updating.
Emitted when there is an available update. The update is downloaded automatically.
abstract fun on(event: AutoUpdaterEvent.UPDATE_DOWNLOADED, listener: (event: Event<*>, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit)
Emitted when an update has been downloaded.
Emitted when there is no available update.
Link copied to clipboard
Restarts the app and installs the update after it has been downloaded. It should only be called after update-downloaded
has been emitted.
Link copied to clipboard
abstract fun removeListener(event: AutoUpdaterEvent.BEFORE_QUIT_FOR_UPDATE, listener: Function<Unit>)
abstract fun removeListener(event: AutoUpdaterEvent.UPDATE_DOWNLOADED, listener: (event: Event<*>, releaseNotes: String, releaseName: String, releaseDate: Date, updateURL: String) -> Unit)
Link copied to clipboard
Sets the url
and initialize the auto updater.
Link copied to clipboard