-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSGGestureController.h
39 lines (27 loc) · 1.06 KB
/
SGGestureController.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
37
38
39
//
// SGGestureController.h
// SongGong
//
// Created by Arshad Tayyeb on 7/16/11.
// Copyright 2011 doubleTwist Corporation. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol SGGestureControllerDelegate;
@interface SGGestureController : NSObject <UIGestureRecognizerDelegate>
@property (nonatomic, retain) NSMutableArray *gestureRecognizers;
@property (readwrite, assign) id <SGGestureControllerDelegate> delegate;
- (id)initWithDelegate:(id <SGGestureControllerDelegate>)inDelegate;
@end
@protocol SGGestureControllerDelegate <NSObject>
- (UIView *)view;
- (void)nextItem:(id)sender; //swipe right
- (void)prevItem:(id)sender; //swipe left
- (void)nextPlaylist:(id)sender; //swipe down
- (void)prevPlaylist:(id)sender; //swipe up
- (void)nextSource:(id)sender; //2 finger swipe right
- (void)prevSource:(id)sender; //2 finger swipe left
- (void)playPauseToggle:(id)sender; //single tap
- (void)showNavigator:(id)sender; //2 finger tap
- (void)showDetail:(id)sender; //TBD
- (void)showSpecialAction:(id)sender; //3 finger double tap
@end