JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ImageCache.h
Go to the documentation of this file.
1
17
18#import <Foundation/Foundation.h>
19#import <UIKit/UIKit.h>
20
21NS_ASSUME_NONNULL_BEGIN
22
30@interface ImageCache : NSObject
31
38@property(class, nonatomic, readonly) ImageCache *sharedCache;
39
45- (instancetype)init;
46
57- (nullable UIImage *)getResPNG:(nullable NSString *)name;
58
66- (void)clear;
67
68@end
69
70NS_ASSUME_NONNULL_END
71
72// code: language=Objective-C
73// kate: hl Objective-C;
74// vim: set ft=objc :
Holds decoded images so a screen change does not re-read them from disk.
Definition ImageCache.h:31
ImageCache * sharedCache
The shared instance.
Definition ImageCache.m:13
void clear()
Drops everything held.
Definition ImageCache.m:54
instancetype init()
Creates the backing cache and caps it at a hundred and twenty-eight entries.
Definition ImageCache.m:27