public class UpdateManager
extends java.lang.Object
| Type | Property and Description |
|---|---|
javafx.beans.property.Property<java.time.LocalDateTime> |
lastCheckForUpdate
Get the lastCheckForUpdateProperty property
|
| Modifier and Type | Method and Description |
|---|---|
void |
asyncCheckForUpdate(java.util.function.Consumer<GithubRelease> newReleaseAvailable,
java.util.function.Consumer<Version> upToDate,
java.lang.Runnable onFailure)
Check for available update asynchronously.
|
void |
asyncForcedCheckForUpdate(java.util.function.Consumer<GithubRelease> newReleaseAvailable,
java.util.function.Consumer<Version> upToDate,
java.lang.Runnable onFailure)
Force an async check for available update and ignore 1 check per hour limit.
|
static UpdateManager |
getInstance()
Get the singleton instance for the
UpdateManager class. |
java.time.LocalDateTime |
getLastCheckForUpdate()
Get the time stamp of the latest update check
|
javafx.beans.property.Property<java.time.LocalDateTime> |
lastCheckForUpdateProperty()
Get the lastCheckForUpdateProperty property
|
public javafx.beans.property.Property<java.time.LocalDateTime> lastCheckForUpdateProperty
getLastCheckForUpdate()public static UpdateManager getInstance()
UpdateManager class.UpdateManager class.public void asyncCheckForUpdate(java.util.function.Consumer<GithubRelease> newReleaseAvailable, java.util.function.Consumer<Version> upToDate, java.lang.Runnable onFailure)
newReleaseAvailable - The delegate run in the event that a new release is availableupToDate - The delegate to run in the event that tha current version is up to dateonFailure - The delegate to run in the event of an error while checking for an updatepublic void asyncForcedCheckForUpdate(java.util.function.Consumer<GithubRelease> newReleaseAvailable, java.util.function.Consumer<Version> upToDate, java.lang.Runnable onFailure)
newReleaseAvailable - The delegate run in the event that a new release is availableupToDate - The delegate to run in the event that tha current version is up to dateonFailure - The delegate to run in the event of an error while checking for an updatepublic java.time.LocalDateTime getLastCheckForUpdate()
public javafx.beans.property.Property<java.time.LocalDateTime> lastCheckForUpdateProperty()
getLastCheckForUpdate()Copyright © 2018 Frederic Thevenet. All rights reserved.