-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFBSDKShareKit+Convenience.h
70 lines (43 loc) · 2.72 KB
/
FBSDKShareKit+Convenience.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
//
// FBShareDialog.h
// Ringtonic
//
// Created by Alexander Ivanov on 05.03.16.
// Copyright © 2016 Alexander Ivanov. All rights reserved.
//
#import <FBSDKShareKit/FBSDKShareKit.h>
#import "NSArray+Convenience.h"
#import "NSObject+Convenience.h"
@interface FBSDKShareLinkContent (Convenience)
+ (instancetype)contentWithURL:(NSURL *)url hashtag:(NSString *)hashtag;
+ (instancetype)contentWithURL:(NSURL *)url;
@end
@interface FBSDKSharePhotoContent (Convenience)
+ (instancetype)createWithURL:(NSURL *)url images:(NSArray<UIImage *> *)images userGenerated:(BOOL)userGenerated;
+ (instancetype)createWithURL:(NSURL *)url images:(NSArray<UIImage *> *)images;
+ (instancetype)createWithURL:(NSURL *)url image:(UIImage *)image userGenerated:(BOOL)userGenerated;
+ (instancetype)createWithURL:(NSURL *)url image:(UIImage *)image;
@end
@interface FBSDKAppInviteContent (Convenience)
+ (instancetype)createWithAppLinkURL:(NSURL *)appLinkURL previewImageURL:(NSURL *)previewImageURL destination:(FBSDKAppInviteDestination)destination;
+ (instancetype)createWithAppLinkURL:(NSURL *)appLinkURL previewImageURL:(NSURL *)previewImageURL;
@end
@interface FBShareDialog : FBSDKShareDialog <FBSDKSharingDelegate>
@property (copy, nonatomic) void (^completionHandler)(BOOL success, NSError *error);
- (instancetype)initWithCompletionHandler:(void (^)(BOOL success, NSError *error))completionHandler;
@end
@interface FBInviteDialog : FBSDKAppInviteDialog <FBSDKAppInviteDialogDelegate>
@property (copy, nonatomic) void (^completionHandler)(BOOL success, NSError *error);
- (instancetype)initWithCompletionHandler:(void (^)(BOOL success, NSError *error))completionHandler;
- (BOOL)validate;
@end
@interface UIViewController (FBSDKShareKit)
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content modes:(NSArray<NSNumber *> *)modes completion:(void (^)(BOOL success, NSError *error))completion;
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content modes:(NSArray<NSNumber *> *)modes;
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content mode:(FBSDKShareDialogMode)mode completion:(void (^)(BOOL success, NSError *error))completion;
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content mode:(FBSDKShareDialogMode)mode;
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content completion:(void (^)(BOOL success, NSError *error))completion;
- (FBSDKShareDialog *)presentSharingContent:(id <FBSDKSharingContent>)content;
- (FBSDKAppInviteDialog *)presentInviteContent:(FBSDKAppInviteContent *)content completion:(void (^)(BOOL success, NSError *error))completion;
- (FBSDKAppInviteDialog *)presentInviteContent:(FBSDKAppInviteContent *)content;
@end