forked from insanj/SaveGram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SaveGram.h
185 lines (129 loc) · 4.82 KB
/
SaveGram.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
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <BackBoardServices/BackBoardServices.h>
#import "substrate.h"
#define SGLOG(fmt, ...) NSLog((@"[SaveGram] %s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
// iOS 8.3+
@interface IGViewController : UIViewController
@end
@interface IGUserDetailViewController : IGViewController
@end
@interface IGWebViewController : IGViewController
@end
@interface IGRootViewController : UIViewController
- (id)topMostViewController;
@end
@interface IGShakeWindow : UIWindow
- (id)rootViewController; // IGRootViewController
@end
@interface AppDelegate : NSObject
- (void)startMainAppWithMainFeedSource:(id)source animated:(BOOL)animated;
- (id)window; // IGShakeWindow
@end
@interface IGPhoto : NSObject
@property (strong, nonatomic) NSArray *imageVersions;
- (id)imageURLForSize:(CGSize)size;
@end
@interface IGVideo : NSObject
@property (strong, nonatomic) NSArray *videoVersions;
- (id)videoURLForVideoVersion:(int)version;
@end
@interface IGPost : NSObject
// iOS 7
@property (nonatomic, readwrite) int mediaType; // 1 = picture, 2 = video
+ (int)videoVersionForCurrentNetworkConditions; // Introducted in 5.0.9
+ (int)fullSizeVideoVersionForDevice; // Removed in 5.0.9
+ (int)fullSizeImageVersionForDevice;
// 6.1.2
- (id)imageURLForFullSizeImage;
// 6.5.x
- (id)imageURLForImageIndex:(NSInteger)index;
- (id)imageURLForSize:(CGSize)size;
- (NSURL *)imageURLForImageVersion:(int)version;
- (NSURL *)videoURLForVideoVersion:(int)version;
// 6.6.x
@property (strong, nonatomic) IGPhoto *photo;
@property (strong, nonatomic) IGVideo *video;
@end
@interface IGFeedItem : IGPost
@end
@interface IGTypedURL : NSObject
@property(readonly, nonatomic) NSURL *url;
@property(readonly, nonatomic) double height;
@property(readonly, nonatomic) double width;
@end
@protocol IGActionSheetDelegate
@optional
- (void)actionSheetFinishedHiding;
@required
- (void)actionSheetDismissedWithButtonTitled:(NSString *)title;
@end
@interface IGFeedItemActionCell : UICollectionViewCell <IGActionSheetDelegate>
@property (nonatomic,retain) IGFeedItem *feedItem;
//removed from this class. moved to IGFeedViewController
//- (void)actionSheetDismissedWithButtonTitled:(NSString *)title;
@end
@interface IGActionSheet : UIWindow
@property (nonatomic, retain) UIView *overlayView;
@property (nonatomic, retain) UIView *buttonView;
@property (nonatomic, retain) NSMutableArray *buttons;
@property (nonatomic, retain) NSObject<IGActionSheetDelegate>* actionDelegate;
+(id)sharedIGActionSheet;
// iOS 8
+ (void)showWithDelegate:(id)arg1;
+ (void)showWithCallback:(id)arg1;
// iOS 7
+ (void)showWithTitle:(NSString *)title delegate:(id)delegate;
+ (void)showWithTitle:(NSString *)title withCallback:(id)callback;
+ (void)addButtonWithTitle:(NSString *)title style:(int)style;
+ (void)dismissAnimated:(BOOL)animated;
- (void)showWithTitle:(NSString *)title;
//the following method appears to have been removed as of 7.13
- (void)addButtonWithTitle:(NSString *)title style:(int)style;
- (void)showWithTitle:(NSString *)title;
- (void)buttonTapped:(UIButton *)button;
- (void)dismissAnimated:(BOOL)animated;
- (void)setButtons:(NSMutableArray *)arg1;
- (void)layoutHeaderAndButtons;
- (void)animateVisible:(BOOL)visible;
@end
@interface IGAssetWriter : NSObject {
NSMutableDictionary* _metadata;
}
@property (nonatomic,retain) UIImage *image;
// @property (nonatomic,retain) CLLocation* location; //@synthesize location=_location - In the implementation block
+ (void)writeVideo:(id)arg1 toInstagramAlbum:(BOOL)arg2 completionBlock:(id)arg3;
+ (void)writeVideoToCameraRoll:(id)arg1;
+ (void)writeVideoToInstagramAlbum:(id)arg1 completion:(id)arg2;
- (id)initWithImage:(id)arg1 metadata:(id)arg2;
- (void)writeToInstagramAlbum:(BOOL)arg1;
- (void)showLibraryAccessMessage;
- (void)writeToCameraRoll;
- (void)writeToInstagramAlbum;
- (id)init;
@end
@interface IGDirectedPostViewController : UIViewController
@property (nonatomic, retain) IGPost *post;
@end
@interface IGLocaleHelper : NSObject
+ (BOOL)localeIsEnglish;
+ (BOOL)localeIsRussian;
+ (BOOL)keyboardLocaleIsFarEast;
+ (id)localeForCurrentLanguage;
+ (BOOL)isLocale:(id)arg1 inLocaleArray:(id)arg2;
+ (id)localeForCurrentKeyboard;
+ (BOOL)localeHasSpecialCharacters;
+ (BOOL)localeIsThai;
@end
typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {
AFNetworkReachabilityStatusUnknown = -1,
AFNetworkReachabilityStatusNotReachable = 0,
AFNetworkReachabilityStatusReachableViaWWAN = 1,
AFNetworkReachabilityStatusReachableViaWiFi = 2,
};
@interface AFNetworkReachabilityManager : NSObject
// @property (readonly, nonatomic, assign, getter = isReachable) BOOL reachable;
@property (nonatomic, readonly) AFNetworkReachabilityStatus networkReachabilityStatus;
+ (AFNetworkReachabilityManager *)sharedManager;
@end