-
Notifications
You must be signed in to change notification settings - Fork 4
/
STKGroupController.h
36 lines (25 loc) · 1.16 KB
/
STKGroupController.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
33
34
35
36
#import "STKGroupView.h"
#import "STKSelectionView.h"
typedef NS_ENUM(NSUInteger, STKClosingEvent) {
STKClosingEventHomeButtonPress = 1,
STKClosingEventListViewScroll,
STKClosingEventSwitcherActivation,
STKClosingEventLock,
};
FOUNDATION_EXTERN NSString * NSStringFromSTKClosingEvent(STKClosingEvent);
@class STKIconViewRecycler;
@interface STKGroupController : NSObject <STKGroupViewDelegate, UIGestureRecognizerDelegate>
+ (instancetype)sharedController;
@property (nonatomic, readonly) STKGroupView *openGroupView;
@property (nonatomic, readonly) STKGroupView *openingGroupView;
@property (nonatomic, readonly) STKGroupView *closingGroupView;
@property (nonatomic, readonly) STKGroupView *activeGroupView;
@property (nonatomic, readonly) STKIconViewRecycler *iconViewRecycler;
- (void)addOrUpdateGroupViewForIconView:(SBIconView *)iconView;
- (void)removeGroupViewFromIconView:(SBIconView *)iconView;
- (void)performRotationWithDuration:(NSTimeInterval)duration;
// returns YES if we reacted to the event, NO if ignored
- (BOOL)handleClosingEvent:(STKClosingEvent)event;
- (void)handleStatusBarTap;
- (void)handleIconRemoval:(SBIcon *)removedIcon;
@end