RawImageDataProvider

public struct RawImageDataProvider : ImageDataProvider

Represents an image data provider for a raw data object.

Public Properties

  • The raw data object to provide to Kingfisher image loader.

    Declaration

    Swift

    public let data: Data

Initializers

  • Creates an image data provider by the given raw data value and a cacheKey be used in Kingfisher cache.

    Declaration

    Swift

    public init(data: Data, cacheKey: String)

    Parameters

    data

    The raw data reprensents an image.

    cacheKey

    The key is used for caching the image data. You need a different key for any different image.

Protocol Conforming