-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathWeatherGroundManager.h
executable file
·42 lines (29 loc) · 1.54 KB
/
WeatherGroundManager.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
#import "Tweak.h"
@interface WeatherGroundManager : NSObject
@property (nonatomic, strong) WUIDynamicWeatherBackground *lockScreenBgView;
@property (nonatomic, strong) WUIDynamicWeatherBackground *homeScreenBgView;
@property (nonatomic, strong) WUIDynamicWeatherBackground *sharedBgView;
@property (nonatomic, strong) UIImage *sharedImage;
@property (nonatomic, strong) NSDictionary *preferencesDictionary;
@property (nonatomic, strong) WALockscreenWidgetViewController *widgetVC;
@property (nonatomic, strong) City *myCity;
@property (nonatomic, strong) NSTimer *autoUpdateTimer;
@property (nonatomic, strong) _UIStatusBarStringView *statusStringView; // In Apps
+ (instancetype)sharedManager;
- (void)setStatusBarTextToWeatherInfo:(NSDictionary *)infoDict;
- (void)changeLabelTextWithAttributedString:(NSMutableAttributedString *)text;
- (void)updateModel;
- (void)setSharedImageWithView:(WUIDynamicWeatherBackground *)backgroundView;
- (void)setupDynamicWeatherBackgrounds;
- (void)setupWeatherEffectLayers;
- (void)pauseWG;
- (void)resumeWG;
- (BOOL)boolForKey:(NSString *)key;
- (int)intForKey:(NSString *)key;
- (CALayer *)weatherEffectsLayerForWeatherView:(WUIDynamicWeatherBackground *)weatherView;
- (void)updateCityForCity:(City *)city;
- (NSDictionary *)temperatureInfo:(NSString *)unit;
- (int)currentConditionCode;
- (UIImage *)getImageForCondition:(NSInteger)conditionCode style:(int)style;
- (NSMutableAttributedString *)stringForWeatherImage:(UIImage *)weatherImg withPrefix:(NSString *)prefixString;
@end