-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHeaders.h
executable file
·376 lines (309 loc) · 13.6 KB
/
Headers.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
#import <objc/runtime.h>
#import "CSMetroLockScreenViewControllerDelegate.h"
#import "ColorFlow.h"
// sandbox functions
char *sandbox_extension_issue_file(const char *extension_class, const char *path, uint32_t flags);
@protocol SBUIPasscodeLockView
- (void)setBackgroundAlpha:(CGFloat)alpha;
@end
@interface UIImage (Bundle)
+ (instancetype)imageNamed:(NSString *)name inBundle:(NSBundle *)bundle;
@end
@interface SBWallpaperEffectView : UIView
-(void)setStyle:(int)style;
-(id)initWithWallpaperVariant:(int)wallpaperVariant;
@end
@interface SBBacklightController : NSObject
+ (instancetype) sharedInstance;
- (void)resetLockScreenIdleTimer;
- (void)cancelLockScreenIdleTimer;
- (void)resetLockScreenIdleTimerWithDuration:(CGFloat)duration;
@end
@interface SBDeviceLockController : NSObject
+ (SBDeviceLockController *)sharedController;
- (BOOL)isPasscodeLocked;
@end
@interface MCPasscodeManager : NSObject
+ (instancetype)sharedManager;
- (NSDictionary *)_passcodeCharacteristics;
- (BOOL)unlockDeviceWithPasscode:(NSString *)passcode outError:(NSError **)error;
- (void)lockDeviceImmediately:(BOOL)lock;
- (BOOL)isPasscodeSet;
- (BOOL)isDeviceLocked;
@end
@interface SBApplication : NSObject
@end
struct SBIconImageInfo {
CGSize size;
CGFloat scale;
CGFloat continuousCornerRadius;
};
@interface SBApplicationIcon : NSObject
- (id)initWithApplication:(SBApplication *)application;
- (UIImage *)generateIconImage:(NSInteger)image; //iOS 7 - 12
- (UIImage *)generateIconImageWithInfo:(struct SBIconImageInfo)info; //iOS 13
@end
@interface SBApplicationController : NSObject
+ (id)sharedInstance;
- (SBApplication *)applicationWithDisplayIdentifier:(NSString *)displayIdentifier;
- (SBApplication *)applicationWithBundleIdentifier:(NSString *)bundleIdentifier;
@end
@interface SBLockScreenScrollView : UIScrollView
@end
@class BBBulletin;
@interface SBLockScreenActionContext : NSObject
@property (nonatomic, strong) NSString * identifier; //@synthesize identifier=_identifier - In the implementation block
@property (nonatomic, strong) NSString * lockLabel; //@synthesize lockLabel=_lockLabel - In the implementation block
@property (nonatomic, strong) NSString * shortLockLabel; //@synthesize shortLockLabel=_shortLockLabel - In the implementation block
@property (nonatomic, copy) id action; //@synthesize action=_action - In the implementation block
@property (assign, nonatomic) BOOL requiresUIUnlock; //@synthesize requiresUIUnlock=_requiresUIUnlock - In the implementation block
@property (assign, nonatomic) BOOL deactivateAwayController; //@synthesize deactivateAwayController=_deactivateAwayController - In the implementation block
@property (assign, nonatomic) BOOL canBypassPinLock; //@synthesize canBypassPinLock=_canBypassPinLock - In the implementation block
@property (nonatomic, readonly) BOOL hasCustomUnlockLabel;
@property (assign, nonatomic) BOOL requiresAuthentication; //@synthesize requiresAuthentication=_requiresAuthentication - In the implementation block
@property (nonatomic, weak) BBBulletin *bulletin; //@synthesize bulletin=_bulletin - In the implementation block
- (SBLockScreenActionContext *)initWithLockLabel:(NSString *)lockLabel shortLockLabel:(NSString *)shortLockLabel action:(/*^block*/id)action identifier:(NSString *)identifier;
@end
@interface SBMutableLockScreenActionContext : SBLockScreenActionContext
@end
@interface SBLockScreenActionContextFactory : NSObject
+(SBLockScreenActionContextFactory *)sharedInstance;
- (SBLockScreenActionContext *)lockScreenActionContextForBulletin:(BBBulletin *)arg1 action:(id)arg2 origin:(int)arg3 pluginActionsAllowed:(BOOL)arg4 context:(id)arg5 completion:(/*^block*/id)arg6 ;
- (SBLockScreenActionContext *)lockScreenActionContextForAction:(id)arg1 fromPlugin:(id)arg2;
@end
@interface SBLockScreenView : UIView
- (SBLockScreenScrollView *)scrollView;
- (UIView<SBUIPasscodeLockView> *) passcodeView;
- (NSInteger)pageNumberForLockScreenPage:(NSInteger)page;
@end
@interface NCNotificationAction : NSObject
@property (nonatomic, readonly, copy) NSDictionary *behaviorParameters;
@property (nonatomic, readonly) BOOL requiresAuthentication;
@end
@interface NCNotificationContent : NSObject
@property (nonatomic, readonly, copy) NSString *header;
@property (nonatomic, readonly) UIImage *icon;
@property (nonatomic, readonly, copy) NSString *message;
@property (nonatomic, readonly, copy) NSString *subtitle;
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *topic;
@end
@interface NCNotificationRequest : NSObject
@property (nonatomic, readonly) BBBulletin *bulletin;
@property (nonatomic, readonly) NCNotificationContent *content;
@property (nonatomic, readonly) NCNotificationAction *defaultAction;
@property (nonatomic, readonly, copy) NSString *sectionIdentifier;
@property (nonatomic,readonly) NSDate *timestamp;
@end
@class NCNotificationPriorityListViewController;
@interface SBDashBoardNotificationListViewController : UIViewController {
NCNotificationPriorityListViewController *_listViewController;
}
@end
@class NCNotificationCombinedListViewController;
@interface SBDashBoardCombinedListViewController : UIViewController { //iOS 10-12
NCNotificationCombinedListViewController *_listViewController;
}
- (void)_updateListViewContentInset;
- (void)_layoutListView;
- (void)showMetroLockScreen;
- (void)hideMetroLockScreen;
@end
@class NCNotificationCombinedListViewController;
@interface CSCombinedListViewController : UIViewController { //iOS 13+
NCNotificationCombinedListViewController *_structuredListViewController;
}
- (void)_updateListViewContentInset;
- (void)_layoutListView;
- (void)showMetroLockScreen;
- (void)hideMetroLockScreen;
-(void)notificationStructuredListViewController:(id)arg1 requestsExecuteAction:(id)arg2 forNotificationRequest:(id)arg3 requestAuthentication:(BOOL)arg4 withParameters:(id)arg5 completion:(/*^block*/id)arg6 ;
@end
@interface SBDashBoardMainPageView : UIView
@end
@interface SBDashBoardMainPageContentViewController : UIViewController
- (SBDashBoardCombinedListViewController *)combinedListViewController;
@end
@interface SBLockScreenViewController : UIViewController <CSMetroLockScreenViewControllerDelegate>
+ (UIView *)getLockGlyphView;
- (SBLockScreenView *) lockScreenView;
- (UIView *) _cameraView;
- (void)activateCameraAnimated:(BOOL)animated;
-(void)finishUIUnlockFromSource:(int)source;
- (SBLockScreenScrollView *)lockScreenScrollView;
- (BOOL)isPasscodeLockVisible;
@end
@interface SBDashBoardPageControl : UIPageControl //iOS 10-12
@end
@interface CSPageControl : UIPageControl //iOS 13+
@end
@interface SBDashBoardIdleTimerProvider : NSObject
- (void)resetIdleTimer; //iOS 10-12
- (void)resetIdleTimerIfTopMost; //iOS 13
@end
@interface SBDashBoardTeachableMomentsContainerView : UIView
@property(retain, nonatomic) UILabel *callToActionLabel;
@property(retain, nonatomic) UIView *controlCenterGrabberView;
@end
@class SBDashBoardViewController;
@interface SBDashBoardView : UIView //iOS 10-12
- (UIView *)mainPageView;
- (UIScrollView *)scrollView;
- (UIView *)fixedFooterView;
- (UIView *)quickActionsView;
- (UIPageControl *)pageControl;
- (NSInteger)_indexOfMainPage;
- (SBDashBoardViewController *)delegate;
@property(retain, nonatomic) SBDashBoardTeachableMomentsContainerView *teachableMomentsContainerView;
@end
@class CSCoverSheetViewController;
@interface CSCoverSheetView : UIView //iOS 13
- (UIView *)mainPageView;
- (UIScrollView *)scrollView;
- (UIView *)fixedFooterView;
- (UIView *)quickActionsView;
- (NSInteger)_indexOfMainPage;
- (SBDashBoardViewController *)delegate;
@property(retain, nonatomic) SBDashBoardTeachableMomentsContainerView *teachableMomentsContainerView;
@end
@interface SBDashBoardViewController : UIViewController <CSMetroLockScreenViewControllerDelegate> //iOS 10-12
- (SBDashBoardView *) dashBoardView;
- (void)finishUIUnlockFromSource:(int)source;
- (BOOL)isPasscodeLockVisible;
- (void)CSMLS_updateStatusBarAlpha;
- (NSInteger)_indexOfMainPage;
- (SBDashBoardMainPageContentViewController *)mainPageContentViewController;
- (UIView *)statusBarBackgroundView;
@end
@interface CSCoverSheetViewController : UIViewController <CSMetroLockScreenViewControllerDelegate> //iOS 13
- (CSCoverSheetView *) coverSheetView;
- (void)finishUIUnlockFromSource:(int)source;
- (BOOL)isPasscodeLockVisible;
- (void)CSMLS_updateStatusBarAlpha;
- (NSInteger)_indexOfMainPage;
- (SBDashBoardMainPageContentViewController *)mainPageContentViewController;
- (UIView *)statusBarBackgroundView;
@end
@interface SBDashBoardMainPageViewController : UIViewController
@end
@interface SBLockScreenManager : NSObject
+ (SBLockScreenManager *)sharedInstance;
- (BOOL)androidlockIsLocked;
- (void) startUIUnlockFromSource:(id)source withOptions:(id)options;
- (void) _finishUIUnlockFromSource:(id)source withOptions:(id)options;
- (BOOL)attemptUnlockWithPasscode:(NSString *)passcode;
- (BOOL) isUILocked;
@property(readonly, assign, nonatomic) SBLockScreenViewController* lockScreenViewController;
@end
@interface SBWiFiManager : NSObject
+ (instancetype)sharedInstance;
- (BOOL)wiFiEnabled;
- (BOOL)isAssociated;
- (int)signalStrengthBars;
- (int)signalStrengthRSSI;
- (void)_updateWiFiState;
@end
@interface SBMutableTelephonySubscriptionInfo : NSObject //iOS 12
- (NSUInteger)signalStrengthBars;
@end
@interface SBTelephonySubscriptionContext : NSObject //iOS 12
-(SBMutableTelephonySubscriptionInfo *)subscriptionInfo;
@end
@interface STMutableTelephonySubscriptionInfo : NSObject //iOS 13+
- (NSUInteger)signalStrengthBars;
@end
@interface STTelephonySubscriptionContext : NSObject //iOS 13+
- (STMutableTelephonySubscriptionInfo *)subscriptionInfo;
@end
@interface STTelephonyStateProvider : NSObject //iOS 13+
- (STTelephonySubscriptionContext *)slot1SubscriptionContext;
- (BOOL)isCellularRadioCapabilityActive;
@end
@interface SBTelephonyManager : NSObject
+ (instancetype)sharedTelephonyManager;
- (BOOL)isInAirplaneMode;
- (int)signalStrengthBars; //iOS 8.x -> 11.4
- (BOOL)cellularRadioCapabilityIsActive;
- (void)updateSpringBoard;
- (SBTelephonySubscriptionContext *)subscriptionContext; //iOS 12
- (SBTelephonySubscriptionContext *)slot2SubscriptionContext; //iOS 12
- (STTelephonyStateProvider *)telephonyStateProvider; //iOS 13+
@end
@interface SBAirplaneModeController : NSObject
+ (instancetype)sharedInstance;
- (BOOL)isInAirplaneMode;
- (void)airplaneModeChanged;
@end
@interface NCNotificationPriorityListViewController : UIViewController
- (id)init;
+ (instancetype)lastInstance;
@end
@protocol NCNotificationListViewControllerDestinationDelegate
@required
-(void)notificationListViewController:(id)arg1 requestsClearingNotificationRequests:(id)arg2;
-(void)notificationListViewController:(id)arg1 requestPermissionToExecuteAction:(id)arg2 forNotificationRequest:(id)arg3 withParameters:(id)arg4 completion:(/*^block*/id)arg5;
-(void)notificationListViewController:(id)arg1 requestsExecuteAction:(id)arg2 forNotificationRequest:(id)arg3 requestAuthentication:(BOOL)arg4 withParameters:(id)arg5 completion:(/*^block*/id)arg6;
@end
@interface NCNotificationCombinedListViewController : UICollectionViewController
- (id)init;
+ (instancetype)lastInstance;
- (CGFloat)_forcedContentSizeHeight; //iOS 11-12
- (CGSize)effectiveContentSize;
- (UIView *)masterListView; //iOS 13
@property (nonatomic, weak) NSObject <NCNotificationListViewControllerDestinationDelegate>* destinationDelegate;
@end
@interface NCNotificationStructuredListViewController : UICollectionViewController
@end
@interface SBFTouchPassThroughView : UIView
@end
@interface SpringBoard : UIApplication
- (UIView *)statusBar;
@end
typedef struct {
NSInteger _field1;
CGPoint _field2;
CGPoint _field3;
} BSUIScrollContext;
extern CFStringRef kMRMediaRemoteNowPlayingInfoAlbum;
extern CFStringRef kMRMediaRemoteNowPlayingInfoArtist;
extern CFStringRef kMRMediaRemoteNowPlayingInfoTitle;
@class MPUNowPlayingController;
@protocol MPUNowPlayingDelegate <NSObject>
@optional
- (void)nowPlayingController:(MPUNowPlayingController *)arg1 elapsedTimeDidChange:(CGFloat)arg2;
- (void)nowPlayingController:(MPUNowPlayingController *)arg1 nowPlayingApplicationDidChange:(NSString *)arg2;
- (void)nowPlayingController:(MPUNowPlayingController *)arg1 nowPlayingInfoDidChange:(NSDictionary *)arg2;
- (void)nowPlayingController:(MPUNowPlayingController *)arg1 playbackStateDidChange:(BOOL)arg2;
- (void)nowPlayingControllerDidBeginListeningForNotifications:(MPUNowPlayingController *)arg1;
- (void)nowPlayingControllerDidStopListeningForNotifications:(MPUNowPlayingController *)arg1;
@end
@interface MPUNowPlayingController : NSObject {
}
@property (nonatomic, readonly) UIImage *currentNowPlayingArtwork;
@property (nonatomic) NSObject<MPUNowPlayingDelegate> *delegate;
@property (nonatomic, readonly) BOOL isPlaying;
- (void)_registerForNotifications;
- (void)_unregisterForNotifications;
- (id)init;
- (void)startUpdating;
- (void)update;
@end
@interface CSMetroLockScreenNowPlaying14: MPUNowPlayingController {
//shim for iOS 14+
}
@end
@interface SBMediaController : NSObject
- (BOOL)changeTrack:(int)trackChange;
- (BOOL)togglePlayPause;
- (BOOL)changeTrack:(int)trackChange;
- (BOOL)changeTrack:(int)trackChange eventSource:(long long)eventSource;
- (BOOL)togglePlayPauseForEventSource:(long long)eventSource;
@end
@interface SBAssistantController : NSObject
+ (instancetype)sharedInstance;
- (BOOL)activatePluginForEvent:(int)arg1 eventSource:(int)arg2 context:(void*)arg3; //iOS 8+
- (BOOL)activatePluginForEvent:(int)event context:(void*)context; //7.x
@end
@interface UIStatusBar : UIView
@end
#include "TweakHeaders.h"