mark SDWebImageCacheKeyFilter default initializer unavailable

This commit is contained in:
Adam 2024-02-26 18:57:51 +08:00
parent 74fa16f4d3
commit bc23f12ecb
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ typedef NSString * _Nullable(^SDWebImageCacheKeyFilterBlock)(NSURL * _Nonnull ur
*/ */
@interface SDWebImageCacheKeyFilter : NSObject <SDWebImageCacheKeyFilter> @interface SDWebImageCacheKeyFilter : NSObject <SDWebImageCacheKeyFilter>
- (nonnull instancetype)init NS_UNAVAILABLE;
+ (nonnull instancetype)new NS_UNAVAILABLE;
- (nonnull instancetype)initWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block; - (nonnull instancetype)initWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block;
+ (nonnull instancetype)cacheKeyFilterWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block; + (nonnull instancetype)cacheKeyFilterWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block;