forked from rpetrich/AppList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALApplicationList.h
32 lines (25 loc) · 1.04 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
27
28
29
30
31
32
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <libkern/OSAtomic.h>
enum {
ALApplicationIconSizeSmall = 29,
ALApplicationIconSizeLarge = 59
};
typedef NSUInteger ALApplicationIconSize;
@class CPDistributedMessagingCenter;
@interface ALApplicationList : NSObject {
@private
CPDistributedMessagingCenter *messagingCenter;
NSMutableDictionary *cachedIcons;
OSSpinLock spinLock;
}
+ (id)sharedApplicationList;
@property (nonatomic, readonly) NSDictionary *applications;
- (NSDictionary *)applicationsFilteredUsingPredicate:(NSPredicate *)predicate;
- (CGImageRef)copyIconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
- (UIImage *)iconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
- (BOOL)hasCachedIconOfSize:(ALApplicationIconSize)iconSize forDisplayIdentifier:(NSString *)displayIdentifier;
@end
extern NSString *const ALIconLoadedNotification;
extern NSString *const ALDisplayIdentifierKey;
extern NSString *const ALIconSizeKey;