Kingfisher Documentation

Structure Kingfisher​Parsed​Options​Info

public struct KingfisherParsedOptionsInfo  

The parsed options info used across Kingfisher methods. Each property in this type corresponds a case member in KingfisherOptionsInfoItem. When a KingfisherOptionsInfo sent to Kingfisher related methods, it will be parsed and converted to a KingfisherParsedOptionsInfo first, and pass through the internal methods.

Initializers

init(_:​)

public init(_ info: KingfisherOptionsInfo?)  

Properties

target​Cache

public var targetCache: ImageCache? = nil

original​Cache

public var originalCache: ImageCache? = nil

downloader

public var downloader: ImageDownloader? = nil

transition

public var transition: ImageTransition = .none

download​Priority

public var downloadPriority: Float = URLSessionTask.defaultPriority

force​Refresh

public var forceRefresh = false

from​Memory​Cache​OrRefresh

public var fromMemoryCacheOrRefresh = false

force​Transition

public var forceTransition = false

cache​Memory​Only

public var cacheMemoryOnly = false

wait​For​Cache

public var waitForCache = false

only​From​Cache

public var onlyFromCache = false

background​Decode

public var backgroundDecode = false

preload​All​Animation​Data

public var preloadAllAnimationData = false

callback​Queue

public var callbackQueue: CallbackQueue = .mainCurrentOrAsync

scale​Factor

public var scaleFactor: CGFloat = 1.0

request​Modifier

public var requestModifier: AsyncImageDownloadRequestModifier? = nil

redirect​Handler

public var redirectHandler: ImageDownloadRedirectHandler? = nil

processor

public var processor: ImageProcessor = DefaultImageProcessor.default

image​Modifier

public var imageModifier: ImageModifier? = nil

cache​Serializer

public var cacheSerializer: CacheSerializer = DefaultCacheSerializer.default

keep​Current​Image​While​Loading

public var keepCurrentImageWhileLoading = false

only​Load​First​Frame

public var onlyLoadFirstFrame = false

cache​Original​Image

public var cacheOriginalImage = false

on​Failure​Image

public var onFailureImage: Optional<KFCrossPlatformImage?> = .none

also​Prefetch​ToMemory

public var alsoPrefetchToMemory = false

load​Disk​File​Synchronously

public var loadDiskFileSynchronously = false

memory​Cache​Expiration

public var memoryCacheExpiration: StorageExpiration? = nil

memory​Cache​Access​Extending​Expiration

public var memoryCacheAccessExtendingExpiration: ExpirationExtending = .cacheTime

disk​Cache​Expiration

public var diskCacheExpiration: StorageExpiration? = nil

disk​Cache​Access​Extending​Expiration

public var diskCacheAccessExtendingExpiration: ExpirationExtending = .cacheTime

processing​Queue

public var processingQueue: CallbackQueue? = nil

progressive​JPEG

public var progressiveJPEG: ImageProgressive? = nil

alternative​Sources

public var alternativeSources: [Source]? = nil

retry​Strategy

public var retryStrategy: RetryStrategy? = nil

low​Data​Mode​Source

public var lowDataModeSource: Source? = nil