1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGMediaStoreContext.h
2015-10-01 19:19:52 +03:00

21 lines
810 B
Objective-C

#import "TGModernCache.h"
@interface TGMediaStoreContext : NSObject
+ (TGMediaStoreContext *)instance;
- (TGModernCache *)temporaryFilesCache;
- (NSNumber *)mediaImageAverageColor:(NSString *)key;
- (void)setMediaImageAverageColorForKey:(NSString *)key averageColor:(NSNumber *)averageColor;
- (UIImage *)mediaReducedImage:(NSString *)key attributes:(__autoreleasing NSDictionary **)attributes;
- (void)setMediaReducedImageForKey:(NSString *)key reducedImage:(UIImage *)reducedImage attributes:(NSDictionary *)attributes;
- (UIImage *)mediaImage:(NSString *)key attributes:(__autoreleasing NSDictionary **)attributes;
- (void)setMediaImageForKey:(NSString *)key image:(UIImage *)image attributes:(NSDictionary *)attributes;
- (void)inMediaReducedImageCacheGenerationQueue:(dispatch_block_t)block;
@end