Download
struct Download
Group of typealias related to the Download
-
A failed task.
Parameters:
- url: Url of a failed task.
- error: A fail error.
Declaration
Swift
public typealias FailedTask = (url: URL, error: Error?)
-
A group of data related to the saved file.
Parameters:
- location: The saved file location.
- filename: A filename of the file.
- fileExtension: A file extension.
Declaration
Swift
public typealias SavedFileData = (location: URL?, filename: String?, fileExtension: String?)
-
A group of data related to the downloaded file.
Parameters:
- location: The saved file location.
- url: A file location, from which started a download.
- error: An error, if unsuccessfully downloaded or saved.
Declaration
Swift
public typealias FileData = (location: URL?, url: URL?, error: Error?)
-
A Download progress.
Parameters:
- progress: Progress as a percentage.
- downloadedSize: Total downloaded size.
- receivedSize: A new received data size.
- fileSize: Total file size.
Declaration
Swift
public typealias ProgressData = (progress: Float, downloadedSize: Int64, receivedSize: Int64, fileSize: Int64)