Kingfisher Documentation

Typealias Prefetcher​Completion​Handler

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

Completion block of prefetcher when initialized with a list of sources.

  • 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.