Type Aliases
The following type aliases are available globally.
-
Undocumented
Declaration
Swift
public typealias CompletionHandler = ((_ image: Image?, _ error: NSError?, _ cacheType: CacheType, _ imageURL: URL?) -> Void)
-
Undocumented
Declaration
Swift
public typealias ImageDownloaderCompletionHandler = ((_ image: Image?, _ error: NSError?, _ url: URL?, _ originalData: Data?) -> Void)
-
Undocumented
Declaration
Swift
public typealias ImageDownloaderProgressBlock = DownloadProgressBlock
-
-
-
-
-
-
Undocumented
Declaration
Swift
public typealias Image = UIImage
-
Undocumented
Declaration
Swift
public typealias Color = UIColor
-
Undocumented
Declaration
Swift
public typealias ImageView = UIImageView
-
Undocumented
Declaration
Swift
public typealias View = UIView
-
Undocumented
Declaration
Swift
public typealias Button = UIButton
-
The downloading progress block type. The parameter value is the
receivedSize
of current response. The second parameter is the total expected data length from response’sContent-Length
header. If the expected length is not available, this block will not be called.Declaration
Swift
public typealias DownloadProgressBlock = ((_ receivedSize: Int64, _ totalSize: Int64) -> 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]
-
Represents the type of transformer method, which will be used in to provide a
Filter
.Declaration
Swift
public typealias Transformer = (CIImage) -> CIImage?
-
Progress update block of prefetcher when initialized with a list of resources.
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
-
Progress update block of prefetcher when initialized with a list of resources.
skippedSources
: An array of sources that are already cached before the prefetching starting.failedSources
: An array of sources that fail to be fetched.completedResources
: An array of sources that are fetched and cached successfully.
Declaration
-
Completion block of prefetcher when initialized with a list of sources.
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 when initialized with a list of sources.
skippedSources
: An array of sources that are already cached before the prefetching starting.failedSources
: An array of sources that fail to be fetched.completedSources
: An array of sources that are fetched and cached successfully.
Declaration
-
-
Undocumented
Declaration
Swift
public typealias IndicatorView = UIView