|
|
@@ -448,28 +448,28 @@ public let KingfisherErrorStatusCodeKey = "statusCode"
|
|
|
public extension Collection where Iterator.Element == KingfisherOptionsInfoItem {
|
|
|
/// The target `ImageCache` which is used.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `targetCache` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `targetCache` instead.")
|
|
|
public var targetCache: ImageCache? {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).targetCache
|
|
|
}
|
|
|
|
|
|
/// The original `ImageCache` which is used.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `originalCache` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `originalCache` instead.")
|
|
|
public var originalCache: ImageCache? {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).originalCache
|
|
|
}
|
|
|
|
|
|
/// The `ImageDownloader` which is specified.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `downloader` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `downloader` instead.")
|
|
|
public var downloader: ImageDownloader? {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).downloader
|
|
|
}
|
|
|
|
|
|
/// Member for animation transition when using UIImageView.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `transition` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `transition` instead.")
|
|
|
public var transition: ImageTransition {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).transition
|
|
|
}
|
|
|
@@ -477,63 +477,63 @@ public extension Collection where Iterator.Element == KingfisherOptionsInfoItem
|
|
|
/// A `Float` value set as the priority of image download task. The value for it should be
|
|
|
/// between 0.0~1.0.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `downloadPriority` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `downloadPriority` instead.")
|
|
|
public var downloadPriority: Float {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).downloadPriority
|
|
|
}
|
|
|
|
|
|
/// Whether an image will be always downloaded again or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `forceRefresh` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `forceRefresh` instead.")
|
|
|
public var forceRefresh: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).forceRefresh
|
|
|
}
|
|
|
|
|
|
/// Whether an image should be got only from memory cache or download.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `fromMemoryCacheOrRefresh` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `fromMemoryCacheOrRefresh` instead.")
|
|
|
public var fromMemoryCacheOrRefresh: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).fromMemoryCacheOrRefresh
|
|
|
}
|
|
|
|
|
|
/// Whether the transition should always happen or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `forceTransition` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `forceTransition` instead.")
|
|
|
public var forceTransition: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).forceTransition
|
|
|
}
|
|
|
|
|
|
/// Whether cache the image only in memory or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `cacheMemoryOnly` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `cacheMemoryOnly` instead.")
|
|
|
public var cacheMemoryOnly: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).cacheMemoryOnly
|
|
|
}
|
|
|
|
|
|
/// Whether the caching operation will be waited or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `waitForCache` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `waitForCache` instead.")
|
|
|
public var waitForCache: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).waitForCache
|
|
|
}
|
|
|
|
|
|
/// Whether only load the images from cache or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `onlyFromCache` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `onlyFromCache` instead.")
|
|
|
public var onlyFromCache: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).onlyFromCache
|
|
|
}
|
|
|
|
|
|
/// Whether the image should be decoded in background or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `backgroundDecode` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `backgroundDecode` instead.")
|
|
|
public var backgroundDecode: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).backgroundDecode
|
|
|
}
|
|
|
|
|
|
/// Whether the image data should be all loaded at once if it is an animated image.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `preloadAllAnimationData` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `preloadAllAnimationData` instead.")
|
|
|
public var preloadAllAnimationData: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).preloadAllAnimationData
|
|
|
}
|
|
|
@@ -541,42 +541,42 @@ public extension Collection where Iterator.Element == KingfisherOptionsInfoItem
|
|
|
/// The `CallbackQueue` on which completion handler should be invoked.
|
|
|
/// If not set in the options, `.mainCurrentOrAsync` will be used.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `callbackQueue` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `callbackQueue` instead.")
|
|
|
public var callbackQueue: CallbackQueue {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).callbackQueue
|
|
|
}
|
|
|
|
|
|
/// The scale factor which should be used for the image.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `scaleFactor` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `scaleFactor` instead.")
|
|
|
public var scaleFactor: CGFloat {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).scaleFactor
|
|
|
}
|
|
|
|
|
|
/// The `ImageDownloadRequestModifier` will be used before sending a download request.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `requestModifier` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `requestModifier` instead.")
|
|
|
public var modifier: ImageDownloadRequestModifier {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).requestModifier
|
|
|
}
|
|
|
|
|
|
/// `ImageProcessor` for processing when the downloading finishes.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `processor` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `processor` instead.")
|
|
|
public var processor: ImageProcessor {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).processor
|
|
|
}
|
|
|
|
|
|
/// `ImageModifier` for modifying right before the image is displayed.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `imageModifier` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `imageModifier` instead.")
|
|
|
public var imageModifier: ImageModifier {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).imageModifier
|
|
|
}
|
|
|
|
|
|
/// `CacheSerializer` to convert image to data for storing in cache.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `cacheSerializer` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `cacheSerializer` instead.")
|
|
|
public var cacheSerializer: CacheSerializer {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).cacheSerializer
|
|
|
}
|
|
|
@@ -584,42 +584,42 @@ public extension Collection where Iterator.Element == KingfisherOptionsInfoItem
|
|
|
/// Keep the existing image while setting another image to an image view.
|
|
|
/// Or the placeholder will be used while downloading.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `keepCurrentImageWhileLoading` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `keepCurrentImageWhileLoading` instead.")
|
|
|
public var keepCurrentImageWhileLoading: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).keepCurrentImageWhileLoading
|
|
|
}
|
|
|
|
|
|
/// Whether the options contains `.onlyLoadFirstFrame`.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `onlyLoadFirstFrame` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `onlyLoadFirstFrame` instead.")
|
|
|
public var onlyLoadFirstFrame: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).onlyLoadFirstFrame
|
|
|
}
|
|
|
|
|
|
/// Whether the options contains `.cacheOriginalImage`.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `cacheOriginalImage` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `cacheOriginalImage` instead.")
|
|
|
public var cacheOriginalImage: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).cacheOriginalImage
|
|
|
}
|
|
|
|
|
|
/// The image which should be used when download image request fails.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `onFailureImage` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `onFailureImage` instead.")
|
|
|
public var onFailureImage: Optional<Image?> {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).onFailureImage
|
|
|
}
|
|
|
|
|
|
/// Whether the `ImagePrefetcher` should load images to memory in an aggressive way or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `alsoPrefetchToMemory` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `alsoPrefetchToMemory` instead.")
|
|
|
public var alsoPrefetchToMemory: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).alsoPrefetchToMemory
|
|
|
}
|
|
|
|
|
|
/// Whether the disk storage file loading should happen in a synchronous behavior or not.
|
|
|
@available(*, deprecated,
|
|
|
- message: "Create a `KingfisherParsedOptionsInfo` from `self` and use `loadDiskFileSynchronously` instead.")
|
|
|
+ message: "Create a `KingfisherParsedOptionsInfo` from `KingfisherOptionsInfo` and use `loadDiskFileSynchronously` instead.")
|
|
|
public var loadDiskFileSynchronously: Bool {
|
|
|
return KingfisherParsedOptionsInfo(Array(self)).loadDiskFileSynchronously
|
|
|
}
|