UpdateNotification Documentation Beta

Class Update​Notification

public class UpdateNotification

The UpdateNotification class contains functions to check for updates and display relevant views.

Initializers

init(feed​Url:​)

public init(feedUrl: URL)

Initialize the UpdateNotification class.

Parameters

feed​Url URL

The URL to the JSON update feed

Properties

feed​Manager

let feedManager: UpdateFeedManager

Methods

check​For​Updates()

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

show​New​Version​View()

public func showNewVersionView()

Show the NewVersionView in a new window.

show​Changelog​Window()

public func showChangelogWindow()

Show the changelog in a new window.