//
//  UIView+WebCacheOperation.h
//  SKWebImage
//
//  Created by 侯森魁 on 2019/8/23.
//  Copyright © 2019 侯森魁. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SKWebImageCompat.h"
#import "SKWebImageManager.h"
NS_ASSUME_NONNULL_BEGIN

@interface UIView (WebCacheOperation)


/**
 Set the image load operation (storage in a view based dictionary)

 @param operation <#operation description#>
 */
- (void)sk_setImageloadOperation:(nullable id)operation forKey:(nullable NSString *)key;


/**
 Cancel all operation for the current UiView and key

 @param key <#key description#>
 */
- (void)sk_cancelImageLoadOperationWithKey:(nullable NSString *)key;


/**
 Just remove the operation corresponding to the UIView and key without cancelling them

 @param key <#key description#>
 */
- (void)sk_removeImageLoadOperationWithKey:(nullable NSString *)key;

@end

NS_ASSUME_NONNULL_END
