| Protocols | |
|---|---|
| From | none |
| To | SDImageCache |
| Declaration | |
|---|---|
| From | @property (nonatomic, readonly, nonnull) SDImageCacheConfig *config |
| To | @property (nonatomic, readonly, copy, nonnull) SDImageCacheConfig *config |
| Declaration | |
|---|---|
| From | + (nonnull instancetype)sharedImageCache |
| To | @property (class, nonatomic, readonly, nonnull) SDImageCache *sharedImageCache |
| Declaration | |
|---|---|
| From | - (nonnull instancetype)initWithNamespace:(nonnull NSString *)ns diskCacheDirectory:(nonnull NSString *)directory |
| To | - (nonnull instancetype)initWithNamespace:(nonnull NSString *)ns diskCacheDirectory:(nullable NSString *)directory |
| Declaration | |
|---|---|
| From | - (void)diskImageExistsWithKey:(nullable NSString *)key completion:(nullable SDWebImageCheckCacheCompletionBlock)completionBlock |
| To | - (void)diskImageExistsWithKey:(nullable NSString *)key completion:(nullable SDImageCacheCheckCompletionBlock)completionBlock |
| Declaration | |
|---|---|
| From | - (nullable NSOperation *)queryCacheOperationForKey:(nullable NSString *)key done:(nullable SDCacheQueryCompletedBlock)doneBlock |
| To | - (nullable NSOperation *)queryCacheOperationForKey:(nullable NSString *)key done:(nullable SDImageCacheQueryCompletionBlock)doneBlock |
| Declaration | |
|---|---|
| From | - (nullable NSOperation *)queryCacheOperationForKey:(nullable NSString *)key options:(SDImageCacheOptions)options done:(nullable SDCacheQueryCompletedBlock)doneBlock |
| To | - (nullable NSOperation *)queryCacheOperationForKey:(nullable NSString *)key options:(SDImageCacheOptions)options done:(nullable SDImageCacheQueryCompletionBlock)doneBlock |
| Declaration | |
|---|---|
| From | - (void)calculateSizeWithCompletionBlock:(nullable SDWebImageCalculateSizeBlock)completionBlock |
| To | - (void)calculateSizeWithCompletionBlock:(nullable SDImageCacheCalculateSizeBlock)completionBlock |
| Protocols | |
|---|---|
| From | none |
| To | NSCopying |
| Declaration | |
|---|---|
| From | typedef NSString * _Nullable (^SDWebImageCacheKeyFilterBlock)(NSURL * _Nullable url) |
| To | typedef NSString * _Nullable (^SDWebImageCacheKeyFilterBlock)(NSURL * _Nonnull url) |
| Declaration | |
|---|---|
| From | UIImage *SDScaledImageForKey(NSString *key, UIImage *image) |
| To | UIImage * _Nullable SDScaledImageForKey(NSString * _Nullable key, UIImage * _Nullable image) |
| Declaration | |
|---|---|
| From | NSString *const _Nonnull SDWebImageDownloadStartNotification |
| To | NSNotificationName _Nonnull const SDWebImageDownloadStartNotification |
| Declaration | |
|---|---|
| From | NSString *const _Nonnull SDWebImageDownloadReceiveResponseNotification |
| To | NSNotificationName _Nonnull const SDWebImageDownloadReceiveResponseNotification |
| Declaration | |
|---|---|
| From | NSString *const _Nonnull SDWebImageDownloadStopNotification |
| To | NSNotificationName _Nonnull const SDWebImageDownloadStopNotification |
| Declaration | |
|---|---|
| From | NSString *const _Nonnull SDWebImageDownloadFinishNotification |
| To | NSNotificationName _Nonnull const SDWebImageDownloadFinishNotification |
| Declaration | |
|---|---|
| From | typedef void (^SDWebImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL) |
| To | typedef SDWebImageDownloaderProgressBlock SDWebImageDownloaderProgressBlock |
| Declaration | |
|---|---|
| From | typedef void (^SDWebImageDownloaderCompletedBlock)(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) |
| To | typedef SDWebImageDownloaderCompletedBlock SDWebImageDownloaderCompletedBlock |
| Declaration | |
|---|---|
| From | @property (nonatomic, strong, nullable) NSURL *url |
| To | @property (nonatomic, readonly, strong, nullable) NSURL *url |
| Protocols | |
|---|---|
| From | none |
| To | SDImageLoader |
| Declaration | |
|---|---|
| From | - (void)setSuspended:(BOOL)suspended |
| To | @property (nonatomic, assign, getter=isSuspended) BOOL suspended |
| Declaration | |
|---|---|
| From | @property (nonatomic, readonly) NSUInteger currentDownloadCount |
| To | @property (nonatomic, readonly, assign) NSUInteger currentDownloadCount |
| Declaration | |
|---|---|
| From | + (nonnull instancetype)sharedDownloader |
| To | @property (class, nonatomic, readonly, nonnull) SDWebImageDownloader *sharedDownloader |
| Protocols | |
|---|---|
| From | SDWebImageDownloaderOperationInterface, SDWebImageOperation |
| To | SDWebImageDownloaderOperation |
| Declaration | |
|---|---|
| From | @property (nonatomic, strong, nullable) NSURLResponse *response |
| To | @property (nonatomic, readonly, strong, nullable) NSURLResponse *response |
| Declaration | |
|---|---|
| From | NSString *const SDWebImageErrorDomain |
| To | NSErrorDomain _Nonnull const SDWebImageErrorDomain |
| Declaration | |
|---|---|
| From | - (BOOL)imageManager:(nonnull SDWebImageManager *)imageManager shouldDownloadImageForURL:(nullable NSURL *)imageURL |
| To | - (BOOL)imageManager:(nonnull SDWebImageManager *)imageManager shouldDownloadImageForURL:(nonnull NSURL *)imageURL |
| Declaration | |
|---|---|
| From | @property (nonatomic, readonly, strong, nullable) SDImageCache *imageCache |
| To | @property (nonatomic, readonly, strong, nonnull) id<SDImageCache> imageCache |
| Declaration | |
|---|---|
| From | @property (nonatomic, copy, nullable) SDWebImageCacheKeyFilterBlock cacheKeyFilter |
| To | @property (nonatomic, strong, nullable) id<SDWebImageCacheKeyFilter> cacheKeyFilter |
| Declaration | |
|---|---|
| From | @property (nonatomic, copy, nullable) SDWebImageCacheSerializerBlock cacheSerializer |
| To | @property (nonatomic, strong, nullable) id<SDWebImageCacheSerializer> cacheSerializer |
| Declaration | |
|---|---|
| From | - (BOOL)isRunning |
| To | @property (nonatomic, readonly, assign, getter=isRunning) BOOL running |
| Declaration | |
|---|---|
| From | + (nonnull instancetype)sharedManager |
| To | @property (class, nonatomic, readonly, nonnull) SDWebImageManager *sharedManager |
| Declaration | |
|---|---|
| From | - (nullable id<SDWebImageOperation>)loadImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock completed:(nullable SDInternalCompletionBlock)completedBlock |
| To | - (nullable SDWebImageCombinedOperation *)loadImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nonnull SDInternalCompletionBlock)completedBlock |
| Declaration | |
|---|---|
| From | + (nonnull instancetype)sharedImagePrefetcher |
| To | @property (class, nonatomic, readonly, nonnull) SDWebImagePrefetcher *sharedImagePrefetcher |
| Declaration | |
|---|---|
| From | - (void)prefetchURLs:(nullable NSArray<NSURL *> *)urls |
| To | - (nullable SDWebImagePrefetchToken *)prefetchURLs:(nullable NSArray<NSURL *> *)urls |
| Declaration | |
|---|---|
| From | - (void)prefetchURLs:(nullable NSArray<NSURL *> *)urls progress:(nullable SDWebImagePrefetcherProgressBlock)progressBlock completed:(nullable SDWebImagePrefetcherCompletionBlock)completionBlock |
| To | - (nullable SDWebImagePrefetchToken *)prefetchURLs:(nullable NSArray<NSURL *> *)urls progress:(nullable SDWebImagePrefetcherProgressBlock)progressBlock completed:(nullable SDWebImagePrefetcherCompletionBlock)completionBlock |
| Declaration | |
|---|---|
| From | - (nullable NSURL *)sd_currentImageURL |
| To | @property (nonatomic, readonly, strong, nullable) NSURL *sd_currentImageURL |
| Declaration | |
|---|---|
| From | - (nullable NSURL *)sd_currentBackgroundImageURL |
| To | @property (nonatomic, readonly, strong, nullable) NSURL *sd_currentBackgroundImageURL |
| Declaration | |
|---|---|
| From | - (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock |
| To | - (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock |
| Declaration | |
|---|---|
| From | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock |
| To | - (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock |
| Declaration | |
|---|---|
| From | typedef void (^SDSetImageBlock)(UIImage * _Nullable image, NSData * _Nullable imageData) |
| To | typedef void (^SDSetImageBlock)(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL) |
| Declaration | |
|---|---|
| From | - (nullable NSURL *)sd_imageURL |
| To | @property (nonatomic, readonly, strong, nullable) NSURL *sd_imageURL |