]> git.cameronkatri.com Git - tweaks.git/blob - QuickActions/Tweak.h
Fix iOS 15+
[tweaks.git] / QuickActions / Tweak.h
1 #import <Foundation/Foundation.h>
2 #import <UIKit/UIViewController.h>
3
4 @interface UIImage (Private)
5 + (instancetype)_applicationIconImageForBundleIdentifier:(NSString*)bundleIdentifier format:(int)format scale:(CGFloat)scale;
6 @end
7
8 @interface SBLeafIcon : NSObject
9 -(id)initWithLeafIdentifier:(id)arg1 applicationBundleID:(id)arg2 ;
10 @end
11
12 @interface SBMainWorkspace : NSObject
13 +(id)sharedInstance;
14 -(void)systemService:(id)arg1 handleOpenApplicationRequest:(id)arg2 withCompletion:(/*^block*/id)arg3;
15 @end
16
17 @interface FBProcess : NSObject
18 @end
19
20 @interface FBProcessManager : NSObject
21 @property (nonatomic,readonly) id systemApplicationProcess;
22 -(id)systemApplicationProcess;
23 +(id)sharedInstance;
24 @end
25
26 @interface FBSOpenApplicationOptions : NSObject
27 +(id)optionsWithDictionary:(id)arg1;
28 @end
29
30 @interface FBSOpenApplicationService : NSObject
31 -(void)openApplication:(NSString *)arg1 withOptions:(FBSOpenApplicationOptions *)arg2 completion:(id)arg3;
32 @end
33
34 @interface CSQuickActionsButton : UIView {
35 UIImageView* _contentView;
36 id _legibilitySettings;
37 }
38 @property (assign,nonatomic) long long type;
39 @property (nonatomic,retain) id legibilitySettings;
40 @property (nonatomic,copy) NSString * backgroundEffectViewGroupName;
41 @property (assign,nonatomic) BOOL permitted;
42 -(id)legibilitySettings;
43 -(void)setBackgroundEffectViewGroupName:(NSString *)arg1;
44 -(id)initWithType:(long long)type;
45 -(void)setImage:(UIImage *)arg1;
46 -(void)setSelectedImage:(UIImage *)arg1;
47 -(void)setSelected:(BOOL)arg;
48 -(UIImage *)_imageWithName:(NSString *)arg1;
49 -(UIImage *)image;
50 -(UIImage *)selectedImage;
51 -(void)setEdgeInsets:(UIEdgeInsets)arg;
52 -(void)setLatching:(BOOL)arg1;
53
54 @property (nonatomic,retain) NSString * bundleID;
55 @end
56
57 @interface CSAction : NSObject
58 +(id)actionWithType:(long long)arg1;
59 @end
60
61 @interface CSQuickActionsViewController : UIViewController
62 -(void)_launchCamera;
63 -(void)_toggleFlashlight;
64 -(void)_resetIdleTimer;
65 -(void)sendAction:(id)arg1;
66 @end
67
68
69 @interface DNDModeAssertionService
70 +(DNDModeAssertionService *)serviceForClientIdentifier:(NSString *)arg;
71 -(void)takeModeAssertionWithDetails:(id)arg1 error:(id)error;
72 -(void)invalidateAllActiveModeAssertionsWithError:(id)error;
73 @end
74
75 @interface DNDModeAssertionDetails
76 +(DNDModeAssertionDetails *)userRequestedAssertionDetailsWithIdentifier:(NSString *)arg1 modeIdentifier:(NSString *)arg2 lifetime:(id)arg3;
77 @end
78
79 @interface DNDStateService
80 +(id)serviceForClientIdentifier:(id)arg1;
81 -(id)queryCurrentStateWithError:(id*)arg1;
82 -(void)addStateUpdateListener:(id)arg1 withCompletionHandler:(id /* block */)arg2;
83 @end
84
85 @interface CSQuickActionsView : UIView
86 @property (nonatomic,retain) CSQuickActionsButton * flashlightButton;
87 @property (nonatomic,retain) CSQuickActionsButton * cameraButton;
88 @property (nonatomic,retain) NSObject * legibilitySettings;
89 @property (assign,nonatomic) CSQuickActionsViewController * delegate;
90 @property (nonatomic,retain) DNDStateService *stateService;
91 -(id)_buttonGroupName;
92 -(id)initWithFrame:(CGRect)arg1 delegate:(id)arg2;
93 -(void)handleButtonTouchEnded:(id)button;
94 -(void)handleButtonTouchBegan:(id)button;
95 -(void)handleButtonPress:(id)button;
96 -(void)_addTargetsToButton:(id)arg1 ;
97 -(UIEdgeInsets)_buttonOutsets;
98 @end
99
100 @interface CSQuickActionsView (QuickActions)
101 @property (nonatomic,retain) NSMutableArray<CSQuickActionsButton*> * leftButtons;
102 @property (nonatomic,retain) NSMutableArray<CSQuickActionsButton*> * rightButtons;
103 @property (nonatomic) BOOL leftOpen;
104 @property (nonatomic) BOOL rightOpen;
105 @property (nonatomic) BOOL collapseLeft;
106 @property (nonatomic) BOOL collapseRight;
107 -(CGRect)leftFrameForButton:(CSQuickActionsButton*)button open:(BOOL)open;
108 -(CGRect)rightFrameForButton:(CSQuickActionsButton*)button open:(BOOL)open;
109 -(void)setDoNotDisturb:(BOOL)state;
110 -(BOOL)isDNDActive;
111 -(void)updateDND:(NSNotification *)notif;
112 -(void)stateService:(id)arg1 didRecieveDoNotDisturbStateUpdate:(id)arg2;
113 @end
114
115 @interface NSUserDefaults (Private)
116 -(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
117 -(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
118 @end
119
120 @interface UIScreen (Private)
121 @property (nonatomic, readonly) CGRect _referenceBounds;
122 @end
123
124 int SBFEffectiveHomeButtonType();