Kingfisher Documentation

Typealias Prefetcher​Progress​Block

public typealias PrefetcherProgressBlock =
    ((_ skippedResources: [Resource], _ failedResources: [Resource], _ completedResources: [Resource]) -> Void) 

Progress update block of prefetcher when initialized with a list of resources.

  • skippedResources: An array of resources that are already cached before the prefetching starting.

  • failedResources: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all.

  • completedResources: An array of resources that are downloaded and cached successfully.