forked from PoomSmart/FLEXing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Interfaces.h
86 lines (64 loc) · 2.32 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
//
// Interfaces.h
// FLEXing
//
// Created by Tanner Bennett on 2016-07-11
// Copyright © 2016 Tanner Bennett. All rights reserved.
//
#pragma mark Imports
#import <UIKit/UIKit.h>
#include <dlfcn.h>
#pragma mark Globals
#define kFLEXLongPressGesture 0xdeadbabe
extern BOOL initialized;
extern id manager;
extern SEL show;
// TODO: activator support
// static NSString * const kFLEXingShow = @"com.pantsthief.flexing.show";
// static NSString * const kFLEXingToggle = @"com.pantsthief.flexing.toggle";
#pragma mark Macros
#define Alert(TITLE,MSG) [[[UIAlertView alloc] \
initWithTitle:(TITLE) \
message:(MSG) \
delegate:nil \
cancelButtonTitle:@"OK" \
otherButtonTitles:nil] show \
]
#define Async(block) dispatch_async(dispatch_get_main_queue(), block)
#define After(seconds, block) dispatch_after( \
dispatch_time(DISPATCH_TIME_NOW, (int64_t)(seconds * NSEC_PER_SEC)), \
dispatch_get_main_queue(), ^block \
);
#pragma mark Interfaces
@interface UIStatusBarWindow : UIWindow @end
@interface UIApplication (Private)
- (id)displayIdentifier;
@end
@interface SBApplication
- (NSString *)bundleIdentifier;
@end
@interface SpringBoard : UIApplication
- (SBApplication *)_accessibilityFrontMostApplication;
@end
// iOS 13 //
@interface UIStatusBarTapAction : NSObject
@property (nonatomic, readonly) NSInteger type;
@end
@interface SBMainDisplaySceneLayoutStatusBarView : UIView
- (void)_statusBarTapped:(id)sender type:(NSInteger)type;
@end
@interface _UISheetDetent : NSObject
+ (instancetype)_mediumDetent;
+ (instancetype)_largeDetent;
@end
@interface _UISheetPresentationController : UIPresentationController
@property (setter=_setDetents:) NSArray *_detents;
@property (setter=_setWantsFullScreen:) BOOL _wantsFullScreen;
@property (setter=_setIndexOfCurrentDetent:) BOOL _indexOfCurrentDetent;
@property (setter=_setDimmingViewTapDismissing:) BOOL _isDimmingViewTapDismissing;
@property (setter=_setIndexOfLastUndimmedDetent:) BOOL _indexOfLastUndimmedDetent;
@property (setter=_setAllowsInteractiveDismissWhenFullScreen:) BOOL _allowsInteractiveDismissWhenFullScreen;
@property (setter=_setPresentsAtStandardHalfHeight:) BOOL _presentsAtStandardHalfHeight;
@property (setter=_setPrefersScrollingExpandsToLargerDetentWhenScrolledToEdge:)
BOOL _prefersScrollingExpandsToLargerDetentWhenScrolledToEdge;
@end