UpdateCheckCallback
public protocol UpdateCheckCallback: class
This protocol is used when requesting details about an update using BarracksClient.checkUpdate(_:callback:).
-
This method is called when the Barracks service identifies an eligible update.
Declaration
Swift
func onUpdateAvailable(_ request: UpdateCheckRequest, update: UpdateCheckResponse)Parameters
requestThe
UpdateCheckRequestrequest used to check for an updateupdateThe
UpdateCheckResponsecontaining the details of the eligible update -
This method is called when the Barracks service identifies that there is no eligible update
Declaration
Swift
func onUpdateUnavailable(_ request: UpdateCheckRequest)Parameters
requestThe
UpdateCheckRequestrequest used to check for an update -
This method is called when an error occurs during the request to the Barracks service.
Declaration
Swift
func onError(_ request: UpdateCheckRequest, error: Error?)Parameters
requestThe
UpdateCheckRequestrequest used to check for an updateerrorThe error which happened during the request
View on GitHub
Install in Dash
UpdateCheckCallback Protocol Reference