]> git.cameronkatri.com Git - tweaks.git/blob - QuickActions/Tweak.h
Switch back to theos
[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 FBSystemServiceOpenApplicationRequest : NSObject
31 @property (assign,getter=isTrusted,nonatomic) BOOL trusted;
32 @property (nonatomic,copy) NSString * bundleIdentifier;
33 @property (nonatomic,copy) FBSOpenApplicationOptions * options;
34 @property (nonatomic,retain) FBProcess * clientProcess;
35 +(id)request;
36 @end
37
38 @interface CSQuickActionsButton : UIView {
39 UIImageView* _contentView;
40 id _legibilitySettings;
41 }
42 @property (assign,nonatomic) long long type;
43 @property (nonatomic,retain) id legibilitySettings;
44 @property (nonatomic,copy) NSString * backgroundEffectViewGroupName;
45 @property (assign,nonatomic) BOOL permitted;
46 -(id)legibilitySettings;
47 -(void)setBackgroundEffectViewGroupName:(NSString *)arg1;
48 -(id)initWithType:(long long)type;
49 -(void)setImage:(UIImage *)arg1;
50 -(void)setSelectedImage:(UIImage *)arg1;
51 -(void)setSelected:(BOOL)arg;
52 -(UIImage *)_imageWithName:(NSString *)arg1;
53 -(UIImage *)image;
54 -(UIImage *)selectedImage;
55 -(void)setEdgeInsets:(UIEdgeInsets)arg;
56 -(void)setLatching:(BOOL)arg1;
57
58 @property (nonatomic,retain) NSString * bundleID;
59 @end
60
61 @interface CSAction : NSObject
62 +(id)actionWithType:(long long)arg1;
63 @end
64
65 @interface CSQuickActionsViewController : UIViewController
66 -(void)_launchCamera;
67 -(void)_toggleFlashlight;
68 -(void)_resetIdleTimer;
69 -(void)sendAction:(id)arg1;
70 @end
71
72
73 @interface DNDModeAssertionService
74 +(DNDModeAssertionService *)serviceForClientIdentifier:(NSString *)arg;
75 -(void)takeModeAssertionWithDetails:(id)arg1 error:(id)error;
76 -(void)invalidateAllActiveModeAssertionsWithError:(id)error;
77 @end
78
79 @interface DNDModeAssertionDetails
80 +(DNDModeAssertionDetails *)userRequestedAssertionDetailsWithIdentifier:(NSString *)arg1 modeIdentifier:(NSString *)arg2 lifetime:(id)arg3;
81 @end
82
83 @interface DNDStateService
84 +(id)serviceForClientIdentifier:(id)arg1;
85 -(id)queryCurrentStateWithError:(id*)arg1;
86 -(void)addStateUpdateListener:(id)arg1 withCompletionHandler:(id /* block */)arg2;
87 @end
88
89 @interface CSQuickActionsView : UIView
90 @property (nonatomic,retain) CSQuickActionsButton * flashlightButton;
91 @property (nonatomic,retain) CSQuickActionsButton * cameraButton;
92 @property (nonatomic,retain) NSObject * legibilitySettings;
93 @property (assign,nonatomic) CSQuickActionsViewController * delegate;
94 @property (nonatomic,retain) DNDStateService *stateService;
95 -(id)_buttonGroupName;
96 -(id)initWithFrame:(CGRect)arg1 delegate:(id)arg2;
97 -(void)handleButtonTouchEnded:(id)button;
98 -(void)handleButtonTouchBegan:(id)button;
99 -(void)handleButtonPress:(id)button;
100 -(void)_addTargetsToButton:(id)arg1 ;
101 -(UIEdgeInsets)_buttonOutsets;
102 @end
103
104 @interface CSQuickActionsView (QuickActions)
105 @property (nonatomic,retain) NSMutableArray<CSQuickActionsButton*> * leftButtons;
106 @property (nonatomic,retain) NSMutableArray<CSQuickActionsButton*> * rightButtons;
107 @property (nonatomic) BOOL leftOpen;
108 @property (nonatomic) BOOL rightOpen;
109 @property (nonatomic) BOOL collapseLeft;
110 @property (nonatomic) BOOL collapseRight;
111 -(CGRect)leftFrameForButton:(CSQuickActionsButton*)button open:(BOOL)open;
112 -(CGRect)rightFrameForButton:(CSQuickActionsButton*)button open:(BOOL)open;
113 -(void)setDoNotDisturb:(BOOL)state;
114 -(BOOL)isDNDActive;
115 -(void)updateDND:(NSNotification *)notif;
116 -(void)stateService:(id)arg1 didRecieveDoNotDisturbStateUpdate:(id)arg2;
117 @end
118
119 @interface NSUserDefaults (Private)
120 -(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
121 -(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
122 @end
123
124 @interface UIScreen (Private)
125 @property (nonatomic, readonly) CGRect _referenceBounds;
126 @end
127
128 int SBFEffectiveHomeButtonType();