Protocols
The following protocols are available globally.
-
An
See moreCacheSerializer
is used to convert some data to an image object after retrieving it from disk storage, and vice versa, to convert an image to data object for storing to the disk storage.Declaration
Swift
public protocol CacheSerializer
-
Represents a data provider to provide image data to Kingfisher when setting with
See moreSource.provider
source. Compared toSource.network
member, it gives a chance to load some image data in your own way, as long as you can provide the data representation for the image.Declaration
Swift
public protocol ImageDataProvider
-
Represents an image resource at a certain url and a given cache key. Kingfisher will use a
See moreResource
to download a resource from network and cache it with the cache key when usingSource.network
as its image setting source.Declaration
Swift
public protocol Resource
-
Represents an object type that is compatible with Kingfisher. You can use
See morekf
property to get a value in the namespace of Kingfisher.Declaration
Swift
public protocol KingfisherCompatible : AnyObject
-
Represents a value type that is compatible with Kingfisher. You can use
See morekf
property to get a value in the namespace of Kingfisher.Declaration
Swift
public protocol KingfisherCompatibleValue
-
Represents a processor based on a
See moreCIImage
Filter
. It requires a filter to create anImageProcessor
.Declaration
Swift
public protocol CIImageProcessor : ImageProcessor
-
An
See moreImageProcessor
would be used to convert some downloaded data to an image.Declaration
Swift
public protocol ImageProcessor
-
Represents a placeholder type which could be set while loading as well as loading finished without getting an image.
See moreDeclaration
Swift
public protocol Placeholder
-
Protocol indicates that an authentication challenge could be handled.
See moreDeclaration
Swift
public protocol AuthenticationChallengeResponsable : AnyObject
-
Protocol of
See moreImageDownloader
. This protocol provides a set of methods which are related to image downloader working stages and rules.Declaration
Swift
public protocol ImageDownloaderDelegate : AnyObject
-
An
See moreImageModifier
can be used to change properties on an image in between cache serialization and use of the image. The modified returned image will be only used for current rendering purpose, the serialization data will not contain the changes applied by theImageModifier
.Declaration
Swift
public protocol ImageModifier
-
Represents and wraps a method for modifying request during an image download request redirection.
See moreDeclaration
Swift
public protocol ImageDownloadRedirectHandler
-
Represents and wraps a method for modifying request before an image download request starts.
See moreDeclaration
Swift
public protocol ImageDownloadRequestModifier
-
Protocol of
See moreAnimatedImageView
.Declaration
Swift
public protocol AnimatedImageViewDelegate : AnyObject
-
An indicator type which can be used to show the download task is in progress.
See moreDeclaration
Swift
public protocol Indicator