-
Notifications
You must be signed in to change notification settings - Fork 6
/
MVURLKit.h
54 lines (44 loc) · 1.71 KB
/
MVURLKit.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
#import <Foundation/Foundation.h>
// Import public headers
#import "MVUploadAuthorization.h"
#import "MVAsset.h"
#import "MVMessage.h"
#import "MVService.h"
#import "MVDribbbleShotService.h"
#import "MVTwitterTweetService.h"
#import "MVYoutubeVideoService.h"
#import "MVCloudAppLinkService.h"
#import "MVVimeoVideoService.h"
#import "MVFlickrPhotoService.h"
#import "MVImageService.h"
#import "MVDroplrLinkService.h"
#import "NSString+EscapeForRegexPattern.h"
#define kMVMentionAttributeName @"kMVMentionAttributeName"
@class MVURLKit,
MVUploadAuthorization;
@protocol MVURLKitDelegate
- (void)urlKit:(MVURLKit*)urlKit
uploadAuthorizationDidExpired:(MVUploadAuthorization*)uploadAuthorization;
@end
@interface MVURLKit : NSObject
@property (strong, readwrite) MVUploadAuthorization *uploadAuthorization;
@property (weak, readwrite) NSObject <MVURLKitDelegate> *delegate;
+ (MVURLKit*)sharedInstance;
- (MVAsset*)uploadFileWithKey:(NSString*)key
data:(NSData*)data;
- (MVAsset*)uploadAvatar:(NSData*)data;
- (BOOL)isAssetExistingForRemoteURL:(NSURL*)remoteURL;
- (MVAsset*)assetForRemoteURL:(NSURL*)remoteURL
download:(BOOL)download;
- (MVAsset*)assetForRemoteURL:(NSURL*)remoteURL;
- (MVAsset*)assetForRemoteURL:(NSURL*)remoteURL
withMaxSize:(CGSize)maxSize;
- (MVAsset*)assetForRemoteURL:(NSURL*)remoteURL
withMaxSize:(CGSize)maxSize
ignoresGIFs:(BOOL)ignoresGIFs;
- (NSArray*)parseMessageForURLs:(NSString*)message
mentionRanges:(NSSet*)ranges;
- (NSArray*)parseMessageForURLs:(NSString*)message
mentionRanges:(NSSet*)ranges
fetchServicesAutomatically:(BOOL)fetchServicesAutomatically;
@end