Kingfisher Documentation

Class Retry​Context

public class RetryContext  

Represents a retry context which could be used to determine the current retry status.

Properties

source

public let source: Source

The source from which the target image should be retrieved.

error

public let error: KingfisherError

The last error which caused current retry behavior.

retried​Count

public var retriedCount: Int

The retried count before current retry happens. This value is 0 if the current retry is for the first time.

user​Info

public internal(set) var userInfo: Any? = nil

A user set value for passing any other information during the retry. If you choose to use RetryDecision.retry as the retry decision for RetryStrategy.retry(context:retryHandler:), the associated value of RetryDecision.retry will be delivered to you in the next retry.