RetrieveImageResult

public struct RetrieveImageResult

Represents the result of a Kingfisher retrieving image task.

  • Gets the image object of this result.

    Declaration

    Swift

    public let image: KFCrossPlatformImage
  • 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.

    Declaration

    Swift

    public let cacheType: CacheType
  • The Source which this result is related to. This indicated where the image of self is referring.

    Declaration

    Swift

    public let source: 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.

    Declaration

    Swift

    public let originalSource: Source