Protocols

The following protocols are available globally.

  • Resource protocol defines how to download and cache a resource from network.

    See more

    Declaration

    Swift

    public protocol Resource
  • An CacheSerializer would be used to convert some data to an image object for retrieving from disk cache and vice versa for storing to disk cache.

    See more

    Declaration

    Swift

    public protocol CacheSerializer
  • Represent a placeholder type which could be set while loading as well as loading finished without getting an image.

    See more

    Declaration

    Swift

    public protocol Placeholder
  • An ImageModifier can be used to change properties on an Image in between cache serialization and use of the image.

    See more

    Declaration

    Swift

    public protocol ImageModifier