// // LOTCacheProvider.h // Lottie // // Created by punmy on 2017/7/8. // // #import #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR #import @compatibility_alias LOTImage UIImage; @protocol LOTImageCache; #pragma mark - LOTCacheProvider @interface LOTCacheProvider : NSObject + (id)imageCache; + (void)setImageCache:(id)cache; @end #pragma mark - LOTImageCache /** This protocol represent the interface of a image cache which lottie can use. */ @protocol LOTImageCache @required - (LOTImage *)imageForKey:(NSString *)key; - (void)setImage:(LOTImage *)image forKey:(NSString *)key; @end #endif