DispatchQueueUpdateNotificationService
class DispatchQueueUpdateNotificationService
The DispatchQueueUpdateNotificationService
-
The current Version
Declaration
Swift
let currentVersion: Version
-
The UpdateCheckService
Declaration
Swift
let updateCheckService: UpdateCheckService
-
The DispatchQueue
Declaration
Swift
let dispatchQueue: DispatchQueue
-
Designated Initializer
Declaration
Swift
init(currentVersion: Version, updateCheckService: UpdateCheckService, dispatchQueue: DispatchQueue = .init(label: "update-notification-service"))
Parameters
currentVersion
The current Version
updateCheckService
The UpdateCheckService
dispatchQueue
The DispatchQueue. Default value
.init
-
Retrieve an optional UpdateNotification via the completion closure
Declaration
Swift
func getUpdateNotification(_ completion: @escaping (UpdateNotification?) -> Void)
Parameters
completion
The completion closure
-
Check for an available Update
Declaration
Swift
func checkForUpdate(_ completion: @escaping (UpdateNotification?) -> Void)
Parameters
completion
The completion closure