Kingfisher Documentation

Structure Retrieve​Image​Result

public struct RetrieveImageResult  

Represents the result of a Kingfisher retrieving image task.

Properties

image

public let image: KFCrossPlatformImage

Gets the image object of this result.

cache​Type

public let cacheType: CacheType

Gets the cache source of the image. It indicates from which layer of cache this image is retrieved. If the image is just downloaded from network, .none will be returned.

source

public let source: Source

The Source which this result is related to. This indicated where the image of self is referring.

original​Source

public let originalSource: Source

The original Source from which the retrieve task begins. It can be different from the source property. When an alternative source loading happened, the source will be the replacing loading target, while the originalSource will be kept as the initial source which issued the image loading process.