Classes
The following classes are available globally.
-
Represents a hybrid caching system which is composed by a
MemoryStorage.Backend
and aDiskStorage.Backend
.ImageCache
is a high level abstract for storing an image as well as its data to disk memory and disk, and retrieving them back.While a default image cache object will be used if you prefer the extension methods of Kingfisher, you can create your own cache object and configure its storages as your need. This class also provide an interface for you to set the memory and disk storage config.
See moreDeclaration
Swift
open class ImageCache
-
Undocumented
See moreDeclaration
Swift
public final class RetrieveImageTask
-
Main manager class of Kingfisher. It connects Kingfisher downloader and cache, to provide a set of convenience methods to use Kingfisher for tasks. You can use this class to retrieve an image via a specified URL from web or cache.
See moreDeclaration
Swift
public class KingfisherManager
-
Represents a downloading manager for requesting the image with a URL from server.
See moreDeclaration
Swift
open class ImageDownloader
-
See moreImagePrefetcher
represents a downloading manager for requesting many images via URLs, then caching them. This is useful when you know a list of image resources and want to download them before showing. It also works with some Cocoa prefetching mechanism like table view or collection viewprefetchDataSource
, to start image downloading and caching before they display on screen.Declaration
Swift
public class ImagePrefetcher : CustomStringConvertible
-
Represents a session data task in
See moreImageDownloader
. It consists of an underlyingURLSessionDataTask
and an array ofTaskCallback
. MultipleTaskCallback
s could be added for a single downloading data task.Declaration
Swift
public class SessionDataTask
-
Represents a subclass of
UIImageView
for displaying animated image. Different from showing animated image in a normalUIImageView
(which load all frames at one time),AnimatedImageView
only tries to load several frames (defined byframePreloadCount
) to reduce memory usage. It provides a tradeoff between memory usage and CPU time. If you have a memory issue when using a normal image view to load GIF data, you could give this class a try.Kingfisher supports setting GIF animated data to either
See moreUIImageView
andAnimatedImageView
out of box. So it would be fairly easy to switch between them.Declaration
Swift
open class AnimatedImageView : UIImageView