mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 02:49:57 +00:00
41 lines
690 B
Objective-C
41 lines
690 B
Objective-C
//
|
|
// LOTCacheProvider.h
|
|
// Lottie
|
|
//
|
|
// Created by punmy on 2017/7/8.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
|
|
|
|
#import <UIKit/UIKit.h>
|
|
@compatibility_alias LOTImage UIImage;
|
|
|
|
@protocol LOTImageCache;
|
|
|
|
#pragma mark - LOTCacheProvider
|
|
|
|
@interface LOTCacheProvider : NSObject
|
|
|
|
+ (id<LOTImageCache>)imageCache;
|
|
+ (void)setImageCache:(id<LOTImageCache>)cache;
|
|
|
|
@end
|
|
|
|
#pragma mark - LOTImageCache
|
|
|
|
/**
|
|
This protocol represent the interface of a image cache which lottie can use.
|
|
*/
|
|
@protocol LOTImageCache <NSObject>
|
|
|
|
@required
|
|
- (LOTImage *)imageForKey:(NSString *)key;
|
|
- (void)setImage:(LOTImage *)image forKey:(NSString *)key;
|
|
|
|
@end
|
|
|
|
#endif
|