DownloadHandler
public struct DownloadHandler
The handler used to combine progress and completion.
-
Typealias for the progress handler which returns the total bytes written and the total bytes expected to write.
Declaration
Swift
public typealias ProgressHandler = ((Int64, Int64) -> Void)?
-
Typealias for the completion handler which returns either an URL and response or and error.
Declaration
Swift
public typealias CompletionHandler = ((URL?, URLResponse?, Error?) -> Void)