//
//  UIImageView+LTWebImage.h
//  LTUtility
//
//  Created by 孙泉 on 2018/5/15.
//  Copyright © 2018年 longtugame. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, LTWebIgnoreType)
{
    LTWebIgnoreNone = 0,
    LTWebIgnoreMemory = 1 << 0,
    LTWebIgnoreDisk = 1 << 1,
    LTWebIgnoreAll = LTWebIgnoreMemory | LTWebIgnoreDisk,
};

@interface UIImageView (LTWebImage)

/**
 网络图片连接
 */
@property (nonatomic, strong) NSString *ltWeb_imageURL;

/**
 占位图
 */
@property (nonatomic, strong) UIImage *ltWeb_placeholder;

/**
 忽略策略
 */
@property (nonatomic, assign) LTWebIgnoreType ltWeb_ignore;

/**
 设置网络图片连接和占位图
 */
- (void)ltWeb_setImageURL:(NSString *)imageURL
              placeholder:(UIImage *)placeholder;

/**
 刷新当前图片
 */
- (void)ltWeb_refreshImage;

@end
