SDImageYYCoder

@interface SDImageYYCoder
    : NSObject <SDImageCoder, SDProgressiveImageCoder, SDAnimatedImageCoder>

YYImageEncoder && YYImageDecoder bridge to supports SDWebImage coder protocol. This class use YYImage’s decoding && encoding system. It supports any image format listed in YYImageType.

Note

This class conforms to SDProgressiveImageCoder && SDAnimatedImageCoder, supports static progressive decoding and animation decoding. However, it does not supports progressive animation decoding like SDImageGIFCoder. Which means you can not use any method in SDAnimatedImageProvider protocol if you create the instance with initIncrementalWithOptions: method.
  • The shared coder instance.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull, class) SDImageYYCoder *sharedCoder;

    Swift

    class var shared: SDImageYYCoder { get }
  • The wrapped YYImageDecoder instance, to support static progressive and animation decoding.

    Note

    This property is only useful for static progressive or animation decoding. For normal decoding process, we will use a temporary YYImageDecoder to do decoding because it does not need to keep decoded context.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) YYImageDecoder *decoder;

    Swift

    var decoder: YYImageDecoder { get }