DefaultCarouselImageLoader
public class DefaultCarouselImageLoader : CarouselImageLoader
Default image loader class which uses a URLSession to load images
-
Undocumented
Declaration
Swift
public let urlSession: URLSession
-
Undocumented
Declaration
Swift
public init(urlSession: URLSession = .shared)
-
Declaration
Swift
public func loadImage(url: URL, completion: ((UIImage?, Error?) -> Void)?)
-
Declaration
Swift
public func loadImage( url: URL, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy, queue: DispatchQueue, completion: ((UIImage?, Error?) -> Void)? )
-
Declaration
Swift
public func cancelImageLoad(from url: URL)