-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTweak.h
96 lines (74 loc) · 2.8 KB
/
Tweak.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
#import "HBLog.h"
#import <CoreMotion/CoreMotion.h>
#import "substrate.h"
#include <math.h>
#import <IOKit/pwr_mgt/IOPMLib.h>
#import <IOKit/pwr_mgt/IOPM.h>
#import <IOKit/pwr_mgt/IOPMLibPrivate.h>
#import <IOKit/IOKitLib.h>
#include <IOKit/hid/IOHIDEventQueue.h>
@interface SBLockScreenManager : NSObject
-(void)startMotion;
-(void)stopMotion;
-(id)init;
@property (nonatomic, retain) CMMotionManager *motionManager;
@end
@interface SBUserAgent
-(void)lockAndDimDevice;
@end
@interface CBAdaptationClient : NSObject
-(BOOL)setEnabled:(BOOL)arg1 ;
@end
@interface CBClient : NSObject
-(CBAdaptationClient *)adaptationClient;
@end
@interface SpringBoardClass
+(id)sharedApplication;
-(id)pluginUserAgent;
@end
@class NSMutableArray;
@interface SBBrightnessController : NSObject
+(id)sharedBrightnessController;
-(void)setBrightnessLevel:(float)arg1 ;
-(void)handleBrightnessEvent:(IOHIDEventRef)arg1 ;
-(void)cancelBrightnessEvent;
-(float)_calcButtonRepeatDelay;
-(void)_increaseBrightnessAndRepeat;
-(void)_decreaseBrightnessAndRepeat;
-(void)_exitMaximumBrightnessMode;
-(void)_enterMaximumBrightnessMode;
-(void)_setBrightnessLevel:(float)arg1 showHUD:(BOOL)arg2 ;
-(void)_adjustBacklightLevel:(BOOL)arg1 ;
-(id)acquireMaximumBrightnessAssertionForReason:(id)arg1 ;
@end
@interface UX : NSObject
+(void)restoreScreenBrightness;
+(void)dimmScreenBrightness;
@end
@class NSString;
@interface PSBrightnessSettingsDetail : NSObject
@property (readonly) unsigned long long hash;
@property (readonly) Class superclass;
@property (copy,readonly) NSString * description;
@property (copy,readonly) NSString * debugDescription;
+(void)setValue:(double)arg1 ;
+(double)currentValue;
+(id)iconImage;
+(id)preferencesURL;
+(double)incrementedBrightnessValue:(double)arg1 ;
+(void)incrementBrightnessValue:(double)arg1 ;
+(void)beginBrightnessAdjustmentTransaction;
+(void)endBrightnessAdjustmentTransaction;
+(void)beginObservingExternalBrightnessChanges:(/*^block*/id)arg1 changedAction:(/*^block*/id)arg2 ;
+(void)endObservingExternalBrightnessChanges;
+(BOOL)deviceSupportsAutoBrightness;
+(void)setAutoBrightnessEnabled:(BOOL)arg1 ;
+(BOOL)autoBrightnessEnabled;
@end
static void lockScreen();
#define PROX_VALUE(_event) IOHIDEventGetIntegerValue(_event, kIOHIDEventFieldProximityLevel)
#define TRIGGERANGLE -0.4
#define POST_NOTIF(_name) CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(),\
CFSTR(_name), NULL, NULL, YES);
#define LISTEN_NOTIF(_call, _name) CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),\
NULL, (CFNotificationCallback)_call, CFSTR(_name), NULL, CFNotificationSuspensionBehaviorCoalesce);