ImageDownloader
class ImageDownloader
Image downloader used to get image from remote server and caches image to local cache directory
-
Undocumented
See moreDeclaration
Swift
enum ImageError : Error
-
Starts download image
Declaration
Swift
func downloadImage(url: URL, completion: ((_ image: UIImage?, _ url: URL, _ error: Error?) -> Void)?)
Parameters
url
Image remote location
completion
completion handler
-
Cancel started download task
Declaration
Swift
func cancel()