-
Notifications
You must be signed in to change notification settings - Fork 5
/
InstaHelper.h
26 lines (19 loc) · 1.03 KB
/
InstaHelper.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
#import "IGHeaders.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface InstaHelper : NSObject
+ (IGRootViewController *)rootViewController;
+ (UIViewController *)currentController;
+ (IGUser *)currentUser;
+ (IGUserSession *)currentSession;
+ (BOOL)isJailbroken;
+ (NSURL*)documentsDirectory;
+ (NSDate *)takenAt:(IGPost*)feedItem;
+ (void)saveVideoToAlbum:(NSURL*)localUrl album:(NSString*)album completion:(void (^)(NSError *error))completion;
+ (void)downloadRemoteFile:(NSURL*)url completion:(void (^)(NSData *data, NSError *complErr))completion;
+ (void)saveRemoteVideo:(NSURL*)url album:(NSString*)album completion:(void (^)(NSError *error))completion;
+ (void)saveRemoteImage:(NSURL*)url album:(NSString*)album completion:(void (^)(NSError *error))completion;
+ (BOOL)isRemoteImage:(NSURL*)url;
+ (void)addImage:(UIImage*)image toCollection:(id)collection completion:(void (^)(NSError *error))completion;
+ (void)addVideo:(NSURL*)videoURL toCollection:(id)collection completion:(void (^)(NSError *error))completion;
@end