-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharedHeader.h
71 lines (49 loc) · 1.74 KB
/
sharedHeader.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFAudio/AVFAudio.h>
#import <WebKit/WebKit.h>
#import <objc/runtime.h>
#import <AVKit/AVKit.h>
#import <MediaRemote/MediaRemote.h>
#import <CoreFoundation/CoreFoundation.h>
static NSString *safe_getBundleIdentifier(void) {
const CFBundleRef mainBundle = CFBundleGetMainBundle();
return mainBundle ? (__bridge NSString *)CFBundleGetIdentifier(mainBundle) : nil;
}
extern BOOL (*setCategoryOriginal)(id, SEL, AVAudioSessionCategory, AVAudioSessionMode, AVAudioSessionCategoryOptions, NSError **);
extern UILongPressGestureRecognizer* gestureRecognizer;
extern UISwitch* ringerAudioSwitch;
extern UISwitch* allowMixingSwitch;
extern UISwitch* duckSwitch;
extern UIButton* resumeButton;
extern UIButton* nextButton;
extern UIButton* previousButton;
@interface UIView (thisTweak)
-(void) setCategoryToPlayback;
-(void) setCategoryToAuto;
@end
@interface UIWindow (thisTweak)
@property (nonatomic) BOOL gestureRecognizerAdded;
@end
@interface UIStatusBarWindow
+(id) class;
@end
@interface musicResumer : NSObject
-(void) resumeMusic;
@end
extern musicResumer* resumer;
@interface tweakMenuViewController : UIViewController
@property UILongPressGestureRecognizer* twoFingerGestureRecognizer;
@property float pressDuration;
-(void) showMenu;
-(IBAction) menuShouldDismiss:(id) sender;
-(IBAction) openSettingsSheet;
-(IBAction) allowRingerAudio:(id) sender;
-(IBAction) playbackShouldDuckOthers:(id) sender;
-(IBAction) allowMixingAudio:(id) sender;
-(void) updateResumeButton;
-(IBAction) nowPlayingSongShouldResume:(id) sender;
-(IBAction) nowPlayingSongShouldSkipNext:(id) sender;
-(IBAction) nowPlayingSongShouldSkipPrev:(id) sender;
@end
extern tweakMenuViewController* menuViewController;