JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
//  Copyright © 2020 dahua. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface UIImageView (Surface)
 
/**
 获取缩略图(如果远程URL为空则从本地加载,若本地也没有则使用默认图)
 
 @param url 封面图URL
 @param placeholder 默认图
 @param deviceId 设备ID
 @param chanelId 设备通道ID
 */
-(void)lc_setThumbImageWithURL:(NSString *)url placeholderImage:(UIImage *)placeholder DeviceId:(NSString *)deviceId ChannelId:(NSString *)chanelId;
 
/**
 保存封面图到本地
 
 @param image 封面图
 @param deviceId 设备ID
 @param chanelId 设备通道ID
 */
-(void)lc_storeImage:(UIImage *)image ForDeviceId:(NSString *)deviceId ChannelId:(NSString *)chanelId;
 
/**
 磁盘中是否存在某设备通道的封面图
 
 @param deviceId 设备id
 @param chanelId 通道号
 @return 是否存在
 */
-(BOOL)lc_deskCacheIsExistThumbImageForDeviceId:(NSString *)deviceId ChannelId:(NSString *)chanelId;
 
 
/**
 删除本地缩略
 @param deviceId 设备ID
 @param chanelId 设备通道ID
 */
-(void)lc_deleteThumbImageWithDeviceId:(NSString *)deviceId ChannelId:(NSString *)chanelId;
@end
 
NS_ASSUME_NONNULL_END