Type Aliases
The following type aliases are available globally.
-
Transformer method which will be used in to provide a
Filter.Declaration
Swift
public typealias Transformer = (CIImage) -> CIImage?
-
It represents a task of retrieving image. You can call
cancelon it to stop the process.Declaration
Swift
public typealias RetrieveImageDiskTask = DispatchWorkItem
-
Progress update block of downloader.
Declaration
Swift
public typealias ImageDownloaderProgressBlock = DownloadProgressBlock -
Completion block of downloader.
Declaration
Swift
public typealias ImageDownloaderCompletionHandler = ((_ image: Image?, _ error: NSError?, _ url: URL?, _ originalData: Data?) -> Void)
-
KingfisherOptionsInfo is a typealias for [KingfisherOptionsInfoItem]. You can use the enum of option item with value to control some behaviors of Kingfisher.
Declaration
Swift
public typealias KingfisherOptionsInfo = [KingfisherOptionsInfoItem]
-
Progress update block of prefetcher.
skippedResources: An array of resources that are already cached before the prefetching starting.failedResources: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all.completedResources: An array of resources that are downloaded and cached successfully.
Declaration
-
Completion block of prefetcher.
skippedResources: An array of resources that are already cached before the prefetching starting.failedResources: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all.completedResources: An array of resources that are downloaded and cached successfully.
Declaration
View on GitHub
Install in Dash
Type Aliases Reference