This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Headers.h
102 lines (84 loc) · 3.24 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
#import <UIKit/UIKit.h>
#import "ABVolumeHUDManager.h"
#import "ABVolumeHUDWindow.h"
#import "ABVolumeHUDViewSettings.h"
#import "ABVolumeHUDDeviceInfo.h"
@interface AVSystemController : NSObject
+ (instancetype)sharedAVSystemController;
- (BOOL)getVolume:(float *)volume forCategory:(NSString *)category;
- (BOOL)setVolumeTo:(float)volume forCategory:(NSString *)category;
@end
@interface _SBHUDModel : NSObject
- (NSString *)identifier;
@end
@interface SBMediaController : NSObject
+ (instancetype)sharedInstance;
- (BOOL)isRingerMuted; // iOS 12 and below
@end
@interface SBRingerControl : NSObject
- (BOOL)isRingerMuted; // iOS 13+
- (float)volume;
@end
@interface SBBacklightController : NSObject
@property (nonatomic,readonly) BOOL screenIsOn;
+ (instancetype)sharedInstance;
- (void)turnOnScreenFullyWithBacklightSource:(long long)arg1;
- (void)_animateBacklightToFactor:(float)factor duration:(double)duration source:(long long)source silently:(BOOL)silently completion:(/*^block*/id)completion;
- (void)setBacklightFactor:(float)factor source:(long long)arg2;
- (void)allowIdleSleep;
- (void)preventIdleSleep;
@end
// Renamed to CSCoverSheetViewController on iOS 13+
@interface SBLockScreenViewControllerBase : UIViewController
-(BOOL)isInScreenOffMode;
-(BOOL)isShowingMediaControls;
@end
@interface SBLockScreenManager : NSObject
@property (readonly) BOOL isUILocked;
+ (instancetype)sharedInstance;
- (SBLockScreenViewControllerBase *)lockScreenViewController; // iOS 12 and below
- (SBLockScreenViewControllerBase *)coverSheetViewController; // iOS 13+
- (BOOL)unlockUIFromSource:(int)source withOptions:(NSDictionary *)options;
@end
// Renamed to SBVolumeControl on iOS 13+
@interface VolumeControl : NSObject {
SBRingerControl* _ringerControl; // iOS 13+
}
// iOS 12 and below
+ (instancetype)sharedVolumeControl;
- (float)getMediaVolume;
- (void)setMediaVolume:(float)volume;
- (void)_presentVolumeHUDWithMode:(int)mode volume:(float)volume;
// iOS 13+
+ (instancetype)sharedInstance;
- (float)_getMediaVolumeForIAP;
- (void)_setMediaVolumeForIAP:(float)volume;
@end
@interface SBMainWorkspace : NSObject
+ (instancetype)sharedInstance;
@property (nonatomic,readonly) SBRingerControl *ringerControl; // iOS 13+
@end
@interface SBLiftToWakeManager : NSObject
@property (setter=_setLockScreenManager:,getter=_lockScreenManager,nonatomic,retain) SBLockScreenManager *lockScreenManager;
@end
@interface SBScreenWakeAnimationController : NSObject
+ (instancetype)sharedInstance;
- (void)_startWakeIfNecessary;
@end;
@interface SBUIBiometricResource : NSObject
+ (instancetype)sharedInstance;
- (BOOL)isPearlDetectEnabled;
- (void)noteScreenWillTurnOn;
@end
@interface SBTapToWakeController : NSObject
+(BOOL)isTapToWakeSupported;
@end
@protocol SBUIActiveOrientationObserver <NSObject>
@required
-(void)activeInterfaceOrientationWillChangeToOrientation:(UIInterfaceOrientation)orientation;
-(void)activeInterfaceOrientationDidChangeToOrientation:(UIInterfaceOrientation)orientation willAnimateWithDuration:(NSTimeInterval)duration fromOrientation:(UIInterfaceOrientation)previousOrientation;
@end
@interface SpringBoard : UIApplication
- (UIInterfaceOrientation)activeInterfaceOrientation;
- (void)addActiveOrientationObserver:(NSObject <SBUIActiveOrientationObserver>*)observer;
@end