-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vaon.h
206 lines (171 loc) · 6.35 KB
/
Vaon.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
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#import <SpringBoard/SpringBoard.h>
//works for iOS 13 and 14
@interface SBMainSwitcherViewController : UIViewController
+(id)sharedInstance;
-(long long)sbActiveInterfaceOrientation;
-(BOOL)isMainSwitcherVisible;
-(BOOL)isAnySwitcherVisible;
-(void)switcherContentController:(id)arg1 setContainerStatusBarHidden:(BOOL)arg2 animationDuration:(double)arg3;
-(void)_updateDisplayLayoutElementForLayoutState:(id)arg1 ;
@end
//works for iOS 13 and 14
@interface SBSwitcherAppSuggestionContentView : UIView
@end
//works for iOS 13
// @interface SBSwitcherAppSuggestionContentViewController : UIViewController
// @end
//works for iOS 13 and 14
@interface SBFluidSwitcherViewController : UIViewController
@end
//works for iOS 13 and 14
@interface SBAppSwitcherSettings
@property (assign) double spacingBetweenTrailingEdgeAndLabels;
@property (assign) double centerPoint;
@property (assign) long long switcherStyle;
-(long long)switcherStyle;
@end
//works for iOS 13 and 14
@interface SBGridSwitcherViewController : SBFluidSwitcherViewController
@end
//works for iOS 13 and 14
@interface PLPlatterview : UIView
@end
//works for iOS 13 and 14
@interface SBSwitcherAppSuggestionBannerView : PLPlatterview
@end
//works in iOS 13 but glyph doesn't work in iOS 14
@interface BCBatteryDevice : NSObject
@property (assign,getter=isFake,nonatomic) BOOL fake;
//ONLY IN IOS 13
@property (nonatomic,readonly) UIImage * glyph;
//ONLY IN IOS 14
-(id)batteryWidgetGlyph;
-(long long)percentCharge;
-(BOOL)isBatterySaverModeActive;
-(BOOL)isCharging;
-(BOOL)isLowBattery;
-(BOOL)isInternal;
-(NSString *)identifier;
@property (nonatomic,readonly) long long productIdentifier;
-(NSString *)name;
-(BOOL)isConnected;
-(NSString *)accessoryIdentifier;
-(NSString *)groupName;
-(unsigned long long)parts;
-(BOOL)isFake;
-(void)setPercentCharge:(long long)arg1;
-(void)updateScrollWidthAndTouchPassthrough;
@end
@interface BCBatteryDeviceController : NSObject
// sharedInstance is not available in iOS 15
+(id)sharedInstance;
+(id)_sharedPowerSourceController;
-(NSArray *)connectedDevices;
@property (setter=_setSortedDevices:,getter=_sortedDevices,nonatomic,retain) NSArray * sortedDevices;
// -(id)_sortedDevices;
//only supported on iOS 13
-(void)removeDeviceChangeHandlerWithIdentifier:(id)arg1;
@end
@interface VaonDeviceBatteryCell : UIStackView
-(instancetype)initWithFrame:(CGRect)arg1 device:(BCBatteryDevice *)device;
@property (nonatomic, weak) BCBatteryDevice *device;
@property (nonatomic) BOOL disconnected;
@property (nonatomic) CGFloat lastKnownPercentage;
@property (nonatomic, strong) NSString *deviceName;
@property (nonatomic) long long deviceProductIdentifier;
@property (nonatomic) NSString * deviceIdentifier;
@property (nonatomic) long long devicePercentage;
@property (nonatomic) CGFloat cellWidth;
@property (nonatomic, strong) UIView *circleBackgroundView;
@property (nonatomic, strong) UILabel *devicePercentageLabel;
@property (nonatomic, strong) UIBlurEffect *circleBackgroundBlurEffect;
@property (nonatomic, strong) UIVisualEffectView *circleBackgroundVisualEffectView;
@property (nonatomic, strong) NSMutableString *devicePercentageString;
@property (nonatomic, readonly, strong) UIFont *devicePercentageLabelFont;
@property (nonatomic, strong) UIBezierPath *circleOutlinePath;
@property (nonatomic, strong) CAShapeLayer *circleOutlineLayer;
@property (nonatomic, strong) UIImageView *deviceGlyphView;
@property (nonatomic, strong) CABasicAnimation *percentageAnimation;
// @property (nonatomic, strong) UIView *paddingView;
-(CGFloat)getCellWidth;
-(void)setCellWidth:(CGFloat)arg1;
-(void)addPercentageSymbolToLabel;
-(long long)getDevicePercentage;
-(void)updateDevicePercentage;
-(void)updateDevicePercentageLabel;
-(void)removeFromSuperview;
-(CGFloat)devicePercentageAsProgress;
-(BOOL)isDeviceInternal;
-(BOOL)isLowPowerModeOn;
-(BOOL)isBatteryLow;
-(void)updateOutlineColor;
-(void)pulsateOutline;
-(void)updatePercentageColor;
-(void)newAnimateOuterLayerToCurrentPercentage;
-(void)newAnimateOuterLayerToZero;
@end
@interface StrokeEndAnimationDelegate : NSObject <CAAnimationDelegate>
-(instancetype)initWithCell:(VaonDeviceBatteryCell *)cell;
@property (nonatomic) VaonDeviceBatteryCell *cell;
-(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;
@end
@interface PulsateColorAnimationDelegate : NSObject <CAAnimationDelegate>
-(instancetype)initWithCell:(VaonDeviceBatteryCell *)cell nextAnimation:(CAAnimation *)nextAnimation;
@property (nonatomic) VaonDeviceBatteryCell *cell;
@property (nonatomic, strong) CAAnimation *nextAnimation;
-(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;
@end
@interface CNFavorites : NSObject
+(id)sharedInstance;
@property (nonatomic,readonly) NSArray * entries;
@end
// @interface CNContact : NSObject
// -(NSData *)imageData;
// @end
// @interface CNFavoriteEntry : NSObject
// -(NSString *)originalName;
// -(CNContact *)contact;
// @end
// @interface VaonFavoriteContactsCell : UIStackView
// -(instancetype)initWithFrame:(CGRect)arg1 favoriteEntry:(CNFavoriteEntry *)favoriteEntry;
// @property (nonatomic, strong) CNFavoriteEntry *favoriteEntry;
// @property (nonatomic, strong) CNContact *contact;
// // @property (nonatomic, strong) NSString *originalName;
// // @property (nonatomic, strong) NSString *value;
// @property (nonatomic, strong) UILabel *contactNameLabel;
// @property (nonatomic, strong) UIImageView *contactImageView;
// @end
@interface SBFluidSwitcherContentView : UIView
@end
@interface SBFTouchPassThroughView : UIView
@end
@interface SBAppSwitcherPageView : UIView
@end
@interface SBFluidSwitcherItemContainer : SBFTouchPassThroughView
@end
@interface SBReusableSnapshotItemContainer : SBFluidSwitcherItemContainer
@end
@interface SBFluidSwitcherItemContainerHeaderView : UIView
@end
@interface SBFluidSwitcherIconImageContainerView : UIView
@end
@interface SBSwitcherWallpaperPageContentView : UIView
@end
@interface SBAppSwitcherReusableSnapshotView : SBSwitcherWallpaperPageContentView
@end
@interface SBFluidSwitcherTouchPassThroughScrollView : UIScrollView
@end
@interface BSUIScrollView : UIScrollView
@end
@interface SBAppSwitcherScrollView : BSUIScrollView
@end
@interface SBApplication
-(id)bundleIdentifier;
@end
// @interface UIBlurEffect : UIVisualEffect
// @end
@interface _UIBackdropViewSettings : NSObject {}
- (id) colorTint;
@end