-
Notifications
You must be signed in to change notification settings - Fork 3
/
ALApplicationList.h
26 lines (19 loc) · 1 KB
/
ALApplicationList.h
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
enum {
ALApplicationIconSizeSmall = 29,
ALApplicationIconSizeLarge = 59
};
typedef NSUInteger ALApplicationIconSize;
@class NSMutableDictionary, NSDictionary, NSPredicate, ALApplicationList;
@interface ALApplicationList : NSObject {
@private
NSMutableDictionary *cachedIcons;
}
+ (ALApplicationList *)sharedApplicationList;
@property (nonatomic, readonly) NSDictionary *applications;
- (NSDictionary *)applicationsFilteredUsingPredicate:(NSPredicate *)predicate;
- (id)valueForKeyPath:(NSString *)keyPath forDisplayIdentifier:(NSString *)displayIdentifier;
- (id)valueForKey:(NSString *)keyPath forDisplayIdentifier:(NSString *)displayIdentifier;
- (CGImageRef)copyIconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
- (UIImage *)iconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
- (BOOL)hasCachedIconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
@end