Indicator
public protocol Indicator
An indicator type which can be used to show the download task is in progress.
-
Called when the indicator should start animating.
Declaration
Swift
func startAnimatingView()
-
Called when the indicator should stop animating.
Declaration
Swift
func stopAnimatingView()
-
centerOffset
Default implementationCenter offset of the indicator. Kingfisher will use this value to determine the position of indicator in the super view.
Default Implementation
Default implementation of
centerOffset
ofIndicator
. The default value is.zero
, means that there is no offset for the indicator view.Declaration
Swift
var centerOffset: CGPoint { get }
-
The indicator view which would be added to the super view.
Declaration
Swift
var view: IndicatorView { get }
-
sizeStrategy(in:)
Default implementationThe size strategy used when adding the indicator to image view.
Default Implementation
Default implementation of
centerOffset
ofIndicator
. The default value is.full
, means that the indicator will pin to the same height and width as the image view.Declaration
Swift
func sizeStrategy(in imageView: KFCrossPlatformImageView) -> IndicatorSizeStrategy
Parameters
imageView
The super view of indicator.