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
urlImage remote location
completioncompletion handler
-
Cancel started download task
Declaration
Swift
func cancel()
ImageDownloader Class Reference