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
request
The
UpdateCheckRequest
request used to check for an updateupdate
The
UpdateCheckResponse
containing 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
request
The
UpdateCheckRequest
request 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
request
The
UpdateCheckRequest
request used to check for an updateerror
The error which happened during the request