commit | author | age
|
bad748
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
W |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import <Foundation/Foundation.h> |
|
20 |
|
|
21 |
#import <FBSDKCoreKit/FBSDKCopying.h> |
13e53a
|
22 |
#import <FBSDKShareKit/FBSDKSharingValidation.h> |
bad748
|
23 |
|
e81c27
|
24 |
NS_ASSUME_NONNULL_BEGIN |
H |
25 |
|
9febd9
|
26 |
/** |
W |
27 |
NS_ENUM(NSUInteger, FBSDKAppInviteDestination) |
|
28 |
Specifies the privacy of a group. |
|
29 |
*/ |
|
30 |
typedef NS_ENUM(NSUInteger, FBSDKAppInviteDestination) |
|
31 |
{ |
|
32 |
/** Deliver to Facebook. */ |
|
33 |
FBSDKAppInviteDestinationFacebook = 0, |
|
34 |
/** Deliver to Messenger. */ |
|
35 |
FBSDKAppInviteDestinationMessenger, |
e81c27
|
36 |
} NS_SWIFT_NAME(AppInviteDestination); |
9febd9
|
37 |
|
W |
38 |
/** |
|
39 |
A model for app invite. |
bad748
|
40 |
*/ |
e81c27
|
41 |
NS_SWIFT_NAME(AppInviteContent) |
13e53a
|
42 |
@interface FBSDKAppInviteContent : NSObject <FBSDKCopying, FBSDKSharingValidation, NSSecureCoding> |
bad748
|
43 |
|
9febd9
|
44 |
/** |
W |
45 |
A URL to a preview image that will be displayed with the app invite |
bad748
|
46 |
|
9febd9
|
47 |
|
W |
48 |
This is optional. If you don't include it a fallback image will be used. |
bad748
|
49 |
*/ |
e81c27
|
50 |
@property (nonatomic, copy, nullable) NSURL *appInvitePreviewImageURL; |
bad748
|
51 |
|
9febd9
|
52 |
/** |
W |
53 |
An app link target that will be used as a target when the user accept the invite. |
bad748
|
54 |
|
9febd9
|
55 |
|
W |
56 |
This is a requirement. |
bad748
|
57 |
*/ |
W |
58 |
@property (nonatomic, copy) NSURL *appLinkURL; |
|
59 |
|
9febd9
|
60 |
/** |
W |
61 |
Promotional code to be displayed while sending and receiving the invite. |
bad748
|
62 |
|
9febd9
|
63 |
|
W |
64 |
This is optional. This can be between 0 and 10 characters long and can contain |
bad748
|
65 |
alphanumeric characters only. To set a promo code, you need to set promo text. |
W |
66 |
*/ |
e81c27
|
67 |
@property (nonatomic, copy, nullable) NSString *promotionCode; |
bad748
|
68 |
|
9febd9
|
69 |
/** |
W |
70 |
Promotional text to be displayed while sending and receiving the invite. |
bad748
|
71 |
|
9febd9
|
72 |
|
W |
73 |
This is optional. This can be between 0 and 80 characters long and can contain |
bad748
|
74 |
alphanumeric and spaces only. |
W |
75 |
*/ |
e81c27
|
76 |
@property (nonatomic, copy, nullable) NSString *promotionText; |
bad748
|
77 |
|
9febd9
|
78 |
/** |
W |
79 |
Destination for the app invite. |
|
80 |
|
|
81 |
|
|
82 |
This is optional and for declaring destination of the invite. |
|
83 |
*/ |
e81c27
|
84 |
@property (nonatomic, assign) FBSDKAppInviteDestination destination; |
9febd9
|
85 |
|
W |
86 |
/** |
|
87 |
Compares the receiver to another app invite content. |
13e53a
|
88 |
@param content The other content |
H |
89 |
@return YES if the receiver's values are equal to the other content's values; otherwise NO |
bad748
|
90 |
*/ |
W |
91 |
- (BOOL)isEqualToAppInviteContent:(FBSDKAppInviteContent *)content; |
|
92 |
|
|
93 |
@end |
e81c27
|
94 |
|
H |
95 |
NS_ASSUME_NONNULL_END |