-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSpringBoard.h
executable file
·143 lines (116 loc) · 4.99 KB
/
SpringBoard.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
#define kBKSBackgroundModeUnboundedTaskCompletion @"unboundedTaskCompletion"
#define kBKSBackgroundModeContinuous @"continuous"
#define kBKSBackgroundModeFetch @"fetch"
#define kBKSBackgroundModeRemoteNotification @"remote-notification"
#define kBKSBackgroundModeExternalAccessory @"external-accessory"
#define kBKSBackgroundModeVoIP @"voip"
#define kBKSBackgroundModeLocation @"location"
#define kBKSBackgroundModeAudio @"audio"
#define kBKSBackgroundModeBluetoothCentral @"bluetooth-central"
#define kBKSBackgroundModeBluetoothPeripheral @"bluetooth-peripheral"
@interface FBSProcessHandle : NSObject
@property(nonatomic, copy) NSString *jobLabel;
@property(nonatomic, copy) NSString *name;
@property(nonatomic, readonly, copy) NSString *bundleIdentifier;
@property(nonatomic, readonly) int pid;
@property(nonatomic) long long type;
@end
@interface FBProcessManager : NSObject
+ (id)sharedInstance;
- (id)applicationProcessForPID:(int)pid;
@end
@interface FBSSceneSettings : NSObject
@end
@interface SBLockScreenNowPlayingController
- (void)_updateNowPlayingPlugin;
@end
@interface SBLockScreenSettings
- (void)setShowNowPlaying:(BOOL)showNowPlaying;
@end
@interface FBSMutableSceneSettings : FBSSceneSettings
@property(nonatomic, getter=isBackgrounded) BOOL backgrounded;
@end
@interface FBScene : NSObject
@property(readonly, retain, nonatomic) FBSMutableSceneSettings *mutableSettings;
@property(readonly, retain, nonatomic) FBSSceneSettings *settings;
- (void)_applyMutableSettings:(id)arg1 withTransitionContext:(id)arg2 completion:(id)arg3;
@end
@interface SBApplication
- (NSString *)bundleIdentifier;
- (void)clearDeactivationSettings;
- (FBScene *)mainScene;
- (id)mainScreenContextHostManager;
- (id)mainSceneID;
- (void)activate;
- (void)setFlag:(long long)arg1 forActivationSetting:(unsigned int)arg2;
- (void)processDidLaunch:(id)arg1;
- (void)processWillLaunch:(id)arg1;
- (void)resumeForContentAvailable;
- (void)resumeToQuit;
- (void)_sendDidLaunchNotification:(BOOL)arg1;
- (void)notifyResumeActiveForReason:(long long)arg1;
- (void)setApplicationState:(unsigned int)applicationState;
@end
@interface SBApplicationController : NSObject
+ (id)sharedInstance;
- (SBApplication *)applicationWithBundleIdentifier:(NSString *)bundleIdentifier;
@end
@interface SBMediaController : NSObject
+ (id)sharedInstance;
@property(nonatomic, readonly) SBApplication *nowPlayingApplication;
- (BOOL)isPlaying;
- (BOOL)togglePlayPause;
@end
@interface SpringBoard : UIApplication
- (void)dnstp_fixUpNowPlayingForPID:(int)pid bundleID:(NSString *)bundleID;
- (void)launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
- (void)dnstp_updateNowPlayingWithMediaController:(SBMediaController *)mediaController;
@end
typedef NS_ENUM(NSUInteger, BKSProcessAssertionReason) {
BKSProcessAssertionReasonNone = 0,
BKSProcessAssertionReasonAudio = 1,
BKSProcessAssertionReasonLocation = 2,
BKSProcessAssertionReasonExternalAccessory = 3,
BKSProcessAssertionReasonFinishTask = 4,
BKSProcessAssertionReasonBluetooth = 5,
BKSProcessAssertionReasonNetworkAuthentication = 6,
BKSProcessAssertionReasonBackgroundUI = 7,
BKSProcessAssertionReasonInterAppAudioStreaming = 8,
BKSProcessAssertionReasonViewServices = 9,
BKSProcessAssertionReasonNewsstandDownload = 10,
BKSProcessAssertionReasonBackgroundDownload = 11,
BKSProcessAssertionReasonVOiP = 12,
BKSProcessAssertionReasonExtension = 13,
BKSProcessAssertionReasonContinuityStreams = 14,
// 15-9999 unknown
BKSProcessAssertionReasonActivation = 10000,
BKSProcessAssertionReasonSuspend = 10001,
BKSProcessAssertionReasonTransientWakeup = 10002,
BKSProcessAssertionReasonVOiP_PreiOS8 = 10003,
BKSProcessAssertionReasonPeriodicTask_iOS8 = BKSProcessAssertionReasonVOiP_PreiOS8,
BKSProcessAssertionReasonFinishTaskUnbounded = 10004,
BKSProcessAssertionReasonContinuous = 10005,
BKSProcessAssertionReasonBackgroundContentFetching = 10006,
BKSProcessAssertionReasonNotificationAction = 10007,
// 10008-49999 unknown
BKSProcessAssertionReasonFinishTaskAfterBackgroundContentFetching = 50000,
BKSProcessAssertionReasonFinishTaskAfterBackgroundDownload = 50001,
BKSProcessAssertionReasonFinishTaskAfterPeriodicTask = 50002,
BKSProcessAssertionReasonAFterNoficationAction = 50003,
// 50004+ unknown
};
typedef NS_ENUM(NSUInteger, ProcessAssertionFlags) {
BKSProcessAssertionFlagNone = 0,
BKSProcessAssertionFlagPreventSuspend = 1 << 0,
BKSProcessAssertionFlagPreventThrottleDownCPU = 1 << 1,
BKSProcessAssertionFlagAllowIdleSleep = 1 << 2,
BKSProcessAssertionFlagWantsForegroundResourcePriority = 1 << 3
};
@interface BKSProcessAssertion : NSObject
- (instancetype)initWithPID:(NSInteger)pid flags:(NSUInteger)flags reason:(NSUInteger)reason name:(NSString *)name withHandler:(id)handler;
+ (NSString *)NameForReason:(NSUInteger)reason;
- (BOOL)valid;
@end
@interface SBLaunchAppListener
- (id)initWithBundleIdentifier:(id)arg1 handlerBlock:(void (^)(void))arg2;
@end