-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathUIKitPrivate.h
234 lines (190 loc) · 8.02 KB
/
UIKitPrivate.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
#import <UIKit/UIKit.h>
typedef struct {
unsigned val[8];
} SCD_Struct_RB3;
@interface LSApplicationProxy : NSObject
@property(nonatomic, assign, readonly) NSString *bundleIdentifier;
@property(nonatomic, assign, readonly) NSString *localizedShortName;
@property(nonatomic, assign, readonly) NSString *primaryIconName;
@end
@interface LSApplicationWorkspace : NSObject
+ (instancetype)defaultWorkspace;
- (NSArray <LSApplicationProxy *> *)allInstalledApplications;
@end
@interface BSCornerRadiusConfiguration : NSObject
- (id)initWithTopLeft:(CGFloat)tl bottomLeft:(CGFloat)bl bottomRight:(CGFloat)br topRight:(CGFloat)tr;
@end
// BoardServices
@interface BSSettings : NSObject
@end
@interface BSTransaction : NSObject
- (void)addChildTransaction:(id)transaction;
- (void)begin;
- (void)setCompletionBlock:(dispatch_block_t)block;
@end
// FrontBoard
@class RBSProcessIdentity, FBProcessExecutableSlice, UIMutableApplicationSceneSettings, UIMutableApplicationSceneClientSettings, UIScenePresentationManager, _UIScenePresenter;
@interface FBApplicationProcessLaunchTransaction : BSTransaction
- (instancetype) initWithProcessIdentity:(RBSProcessIdentity *)identity executionContextProvider:(id)providerBlock;
- (void)_begin;
@end
@interface FBProcessExecutionContext : NSObject
@end
@interface FBMutableProcessExecutionContext : FBProcessExecutionContext
@property (nonatomic,copy) RBSProcessIdentity * identity;
@property (nonatomic,copy) NSArray * arguments;
@property (nonatomic,copy) NSDictionary * environment;
@property (nonatomic,retain) NSURL * standardOutputURL;
@property (nonatomic,retain) NSURL * standardErrorURL;
@property (assign,nonatomic) BOOL waitForDebugger;
@property (assign,nonatomic) BOOL disableASLR;
@property (assign,nonatomic) BOOL checkForLeaks;
@property (assign,nonatomic) long long launchIntent;
//@property (nonatomic,retain) id<FBProcessWatchdogProviding> watchdogProvider;
@property (nonatomic,copy) NSString * overrideExecutablePath;
//@property (nonatomic,retain) FBProcessExecutableSlice * overrideExecutableSlice;
@property (nonatomic,copy) id completion;
-(id)copyWithZone:(NSZone*)arg1 ;
@end
@interface FBProcess : NSObject
- (id)name;
@end
@interface FBScene : NSObject
- (FBProcess *)clientProcess;
- (UIScenePresentationManager *)uiPresentationManager;
- (void)updateSettings:(UIMutableApplicationSceneSettings *)settings withTransitionContext:(id)context completion:(id)completion;
@end
@interface FBDisplayManager : NSObject
+ (instancetype)sharedInstance;
- (id)mainConfiguration;
@end
@interface FBSSceneClientIdentity : NSObject
+ (instancetype)identityForBundleID:(NSString *)bundleID;
+ (instancetype)identityForProcessIdentity:(RBSProcessIdentity *)identity;
+ (instancetype)localIdentity;
@end
@interface FBProcessManager : NSObject
+ (instancetype)sharedInstance;
- (FBProcessExecutionContext *)launchProcessWithContext:(FBMutableProcessExecutionContext *)context;
- (void)registerProcessForAuditToken:(SCD_Struct_RB3)token;
@end
@interface FBSSceneSpecification : NSObject
+ (instancetype)specification;
@end
// RunningBoardServices
@interface RBSProcessIdentity : NSObject
+ (instancetype)identityForEmbeddedApplicationIdentifier:(NSString *)identifier;
@end
@interface RBSProcessPredicate
+ (instancetype)predicateMatchingIdentity:(RBSProcessIdentity *)identity;
@end
@interface RBSProcessHandle
+ (instancetype)handleForPredicate:(RBSProcessPredicate *)predicate error:(NSError **)error;
- (SCD_Struct_RB3)auditToken;
@end
@interface UIApplicationSceneSpecification : FBSSceneSpecification
@end
@interface FBSSceneIdentity : NSObject
+ (instancetype)identityForIdentifier:(NSString *)id;
@end
// FBSSceneSettings
@interface UIMutableApplicationSceneSettings : NSObject
@property(nonatomic, assign, readwrite) BOOL canShowAlerts;
@property(nonatomic, assign) BOOL deviceOrientationEventsEnabled;
@property(nonatomic, assign, readwrite) NSInteger interruptionPolicy;
@property(nonatomic, strong, readwrite) NSString *persistenceIdentifier;
@property (nonatomic, assign, readwrite) UIEdgeInsets peripheryInsets;
@property (nonatomic, assign, readwrite) UIEdgeInsets safeAreaInsetsPortrait, safeAreaInsetsPortraitUpsideDown, safeAreaInsetsLandscapeLeft, safeAreaInsetsLandscapeRight;
@property (nonatomic, strong, readwrite) BSCornerRadiusConfiguration *cornerRadiusConfiguration;
- (id)displayConfiguration;
- (CGRect)frame;
- (NSMutableSet *)ignoreOcclusionReasons;
- (void)setDisplayConfiguration:(id)c;
- (void)setForeground:(BOOL)f;
- (void)setFrame:(CGRect)frame;
- (void)setLevel:(NSInteger)level;
- (void)setStatusBarDisabled:(BOOL)disabled;
- (void)setInterfaceOrientation:(NSInteger)o;
- (BSSettings *)otherSettings;
@end
@interface FBSSceneParameters : NSObject
@property(nonatomic, copy) UIMutableApplicationSceneSettings *settings;
@property(nonatomic, copy) UIMutableApplicationSceneClientSettings *clientSettings;
+ (instancetype)parametersForSpecification:(FBSSceneSpecification *)spec;
//- (void)updateSettingsWithBlock:(id)block;
@end
@interface FBSMutableSceneParameters : FBSSceneParameters
//- (void)updateClientSettingsWithBlock:(id)block;
@end
@interface FBSMutableSceneDefinition : NSObject
@property(nonatomic, copy) FBSSceneClientIdentity *clientIdentity;
@property(nonatomic, copy) FBSSceneIdentity *identity;
@property(nonatomic, copy) FBSSceneSpecification *specification;
+ (instancetype)definition;
@end
@interface FBSceneManager : NSObject
+ (instancetype)sharedInstance;
- (FBScene *)createSceneWithDefinition:(id)def initialParameters:(id)params;
@end
@interface UIImage(internal)
+ (instancetype)_applicationIconImageForBundleIdentifier:(NSString *)bundleID format:(NSInteger)format scale:(CGFloat)scale;
@end
// UIKit
@interface UIApplicationSceneTransitionContext : NSObject
@end
@interface UIMutableApplicationSceneClientSettings : NSObject
@property(nonatomic, assign) NSInteger interfaceOrientation;
@property(nonatomic, assign) NSInteger statusBarStyle;
@end
@interface UIWindow(private)
- (instancetype)_initWithFrame:(CGRect)frame attached:(BOOL)attached;
- (void)orderFront:(id)arg1;
@end
@interface UIScreen(private)
- (CGRect)_referenceBounds;
- (id)displayConfiguration;
@end
@interface UIScenePresentationBinder : NSObject
- (void)addScene:(id)scene;
@end
@interface UIScenePresentationManager : NSObject
- (instancetype)_initWithScene:(FBScene *)scene;
- (_UIScenePresenter *)createPresenterWithIdentifier:(NSString *)identifier;
@end
@interface _UIScenePresenterOwner : NSObject
- (instancetype)initWithScenePresentationManager:(UIScenePresentationManager *)manager context:(FBScene *)scene;
@end
@interface _UIScenePresentationView : UIView
//- (instancetype)initWithPresenter:(_UIScenePresenter *)presenter;
@end
@interface _UIScenePresenter : NSObject
@property (nonatomic, assign, readonly) _UIScenePresentationView *presentationView;
@property(nonatomic, assign, readonly) FBScene *scene;
- (instancetype)initWithOwner:(_UIScenePresenterOwner *)manager identifier:(NSString *)scene sortContext:(NSNumber *)context;
- (void)activate;
- (void)deactivate;
- (void)invalidate;
@end
@interface UIRootWindowScenePresentationBinder : UIScenePresentationBinder
- (instancetype)initWithPriority:(int)pro displayConfiguration:(id)c;
@end
@interface UIScenePresentationContext : NSObject
- (UIScenePresentationContext *)_initWithDefaultValues;
@end
@interface _UISceneLayerHostContainerView : UIView
- (instancetype)initWithScene:(FBScene *)scene debugDescription:(NSString *)desc;
- (void)_setPresentationContext:(UIScenePresentationContext *)context;
@end
@interface UIApplication()
- (void)launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
@end
// PreviewsServicesUI
@interface UVInjectedScene: NSObject
@property(nonatomic, assign, readonly) FBScene *scene;
@property(nonatomic, assign, readonly) NSString *sceneIdentifier;
+ (instancetype)injectInProcess:(NSInteger)pid error:(NSError **)error;
+ (instancetype)_injectInProcessHandle:(RBSProcessHandle *)process error:(NSError **)error;
@end
@interface UVSceneHost : UIView
+ (instancetype)createWithInjectedScene:(UVInjectedScene *)scene error:(NSError **)error;
@end