/
Interfaces.h
125 lines (120 loc) · 4.2 KB
/
Interfaces.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#import <objc/runtime.h>
#import "UIImage+SNBAdditions.h"
#import <AudioToolbox/AudioToolbox.h>
#define kTweakName @"Snakebite"
#ifdef DEBUG
#define NSLog(FORMAT, ...) NSLog(@"[%@: %s - %i] %@", kTweakName, __FILE__, __LINE__, [NSString stringWithFormat:FORMAT, ##__VA_ARGS__])
#else
#define NSLog(FORMAT, ...) do {} while(0)
#endif
@interface SBIcon : NSObject
@property (nonatomic, retain) NSString* applicationBundleID;
-(NSString*)displayNameForLocation:(NSInteger)location;
-(UIImage*)generateIconImage:(int)arg1;
@end
@interface UIApplication (Private)
@property (nonatomic, assign) BOOL statusBarHidden;
-(id)_accessibilityFrontMostApplication;
-(void)launchApplicationWithIdentifier:(NSString*)identifier suspended:(BOOL)suspended;
-(void)setStatusBarHidden:(BOOL)hidden duration:(CGFloat)duration;
@end
@interface SBIconModel : NSObject
-(id)expectedIconForDisplayIdentifier:(NSString*)ident;
@end
@interface SBIconController : UIViewController
+(instancetype)sharedInstance;
@property (nonatomic, retain) SBIconModel* model;
@end
@interface SBApplicationShortcutMenuBackgroundView : UIView
@end
@interface SBApplication : NSObject
@property (nonatomic, retain) NSString* bundleIdentifier;
@end
@interface FBSDisplay : NSObject
@end
@interface FBDisplayManager : NSObject
+(id)sharedInstance;
+(FBSDisplay*)mainDisplay;
@end
@interface FBRootWindow : UIWindow
@end
@interface FBSceneManager : NSObject
+(id)sharedInstance;
-(FBRootWindow*)_rootWindowForDisplay:(FBSDisplay*)display createIfNecessary:(BOOL)createIfNecessary;
@end
@interface SBAppContainerView : UIView
@end
@interface SBAppContainerViewController : UIViewController
@property (nonatomic, retain) SBAppContainerView* view;
@end
@interface SBMainDisplaySceneLayoutViewController : UIViewController
-(SBAppContainerViewController*)_layoutElementControllerForLayoutRole:(int)role;
-(CGRect)referenceFrameForIdentifier:(NSString*)identifier inLayoutState:(int)layoutState;
@end
@interface SBMainDisplaySceneManager : NSObject
-(SBMainDisplaySceneLayoutViewController*)layoutController;
@end
@interface SBSceneManagerCoordinator : NSObject
+(id)sharedInstance;
-(SBMainDisplaySceneManager*)sceneManagerForDisplay:(FBSDisplay*)display;
@end
@interface SBHomeScreenView : UIView
@end
@interface SBUIController : NSObject
@property (nonatomic, retain) SBHomeScreenView* window;
+(instancetype)sharedInstance;
-(BOOL)handleMenuDoubleTap;
@end
@interface _UIBackdropViewSettings : NSObject
+(id)settingsForStyle:(NSInteger)style graphicsQuality:(NSInteger)quality;
+(id)settingsForStyle:(NSInteger)style;
-(void)setDefaultValues;
-(id)initWithDefaultValues;
@end
@interface _UIBackdropView : UIView
-(id)initWithFrame:(CGRect)frame autosizesToFitSuperview:(BOOL)autoresizes settings:(_UIBackdropViewSettings*)settings;
@end
static int const UITapticEngineFeedbackPeek = 1001;
static int const UITapticEngineFeedbackPop = 1002;
@interface UITapticEngine : NSObject
- (void)actuateFeedback:(int)arg1;
- (void)endUsingFeedback:(int)arg1;
- (void)prepareUsingFeedback:(int)arg1;
@end
@interface UIDevice (Private)
-(UITapticEngine*)_tapticEngine;
@end
@interface SBMainSwitcherViewController : UIViewController
+(id)sharedInstance;
@end
@interface SBWallpaperEffectView : UIView
@property (nonatomic, assign) int style;
-(id)initWithWallpaperVariant:(int)variant;
@end
@interface SBFWallpaperView : UIView
@end
@interface SBWallpaperController : NSObject {
SBFWallpaperView* _sharedWallpaperView;
SBFWallpaperView* _homescreenWallpaperView;
}
-(id)initWithOrientation:(int)orientation variant:(int)variant;
@end
@interface MPUSystemMediaControlsViewController : UIViewController
@end
@interface SBAppSwitcherModel : NSObject {
NSMutableArray *_recentDisplayItems;
}
+(instancetype)sharedInstance;
-(NSArray*)mainSwitcherDisplayItems;
@end
@interface SBDisplayItem : NSObject
@property (nonatomic, retain) NSString* displayIdentifier;
@end
@interface FBSystemGestureManager : NSObject <UIGestureRecognizerDelegate>
+(id)sharedInstance;
-(void)addGestureRecognizer:(id)arg1 toDisplay:(id)arg2 ;
-(void)removeGestureRecognizer:(id)arg1 fromDisplay:(id)arg2 ;
@end
OBJC_EXTERN UIImage *_UICreateScreenUIImage(void) NS_RETURNS_RETAINED;
//Declared in Tweak.xm
SBIcon* iconForBundleIdentifier(NSString* bundleIdentifier);