Class
UpdateNotification
public class UpdateNotification
The UpdateNotification
class contains functions to check for updates and display relevant views.
Initializers
init(feedUrl:)
public init(feedUrl: URL)
Initialize the UpdateNotification class.
Parameters
Name | Type | Description |
---|---|---|
feedUrl | URL |
The URL to the JSON update feed |
Properties
feedManager
let feedManager: UpdateFeedManager
Methods
checkForUpdates()
public func checkForUpdates() -> Bool
Compare the latest version in the update feed to the currently installed version.
Returns
A boolean if a newer version is available
showNewVersionView()
public func showNewVersionView()
Show the NewVersionView
in a new window.
showChangelogWindow()
public func showChangelogWindow()
Show the changelog in a new window.