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> |
|
22 |
|
|
23 |
/*! |
|
24 |
@abstract A model for app invite. |
|
25 |
*/ |
|
26 |
@interface FBSDKAppInviteContent : NSObject <FBSDKCopying, NSSecureCoding> |
|
27 |
|
|
28 |
/*! |
|
29 |
@abstract A URL to a preview image that will be displayed with the app invite |
|
30 |
|
|
31 |
@discussion This is optional. If you don't include it a fallback image will be used. |
|
32 |
*/ |
|
33 |
@property (nonatomic, copy) NSURL *appInvitePreviewImageURL; |
|
34 |
|
|
35 |
/*! |
|
36 |
@abstract An app link target that will be used as a target when the user accept the invite. |
|
37 |
|
|
38 |
@discussion This is a requirement. |
|
39 |
*/ |
|
40 |
@property (nonatomic, copy) NSURL *appLinkURL; |
|
41 |
|
|
42 |
/*! |
|
43 |
@deprecated Use `appInvitePreviewImageURL` instead. |
|
44 |
*/ |
|
45 |
@property (nonatomic, copy) NSURL *previewImageURL __attribute__ ((deprecated("use appInvitePreviewImageURL instead"))); |
|
46 |
|
|
47 |
/*! |
|
48 |
@abstract Promotional code to be displayed while sending and receiving the invite. |
|
49 |
|
|
50 |
@discussion This is optional. This can be between 0 and 10 characters long and can contain |
|
51 |
alphanumeric characters only. To set a promo code, you need to set promo text. |
|
52 |
*/ |
|
53 |
@property (nonatomic, copy) NSString *promotionCode; |
|
54 |
|
|
55 |
/*! |
|
56 |
@abstract Promotional text to be displayed while sending and receiving the invite. |
|
57 |
|
|
58 |
@discussion This is optional. This can be between 0 and 80 characters long and can contain |
|
59 |
alphanumeric and spaces only. |
|
60 |
*/ |
|
61 |
@property (nonatomic, copy) NSString *promotionText; |
|
62 |
|
|
63 |
/*! |
|
64 |
@abstract Compares the receiver to another app invite content. |
|
65 |
@param content The other content |
|
66 |
@return YES if the receiver's values are equal to the other content's values; otherwise NO |
|
67 |
*/ |
|
68 |
- (BOOL)isEqualToAppInviteContent:(FBSDKAppInviteContent *)content; |
|
69 |
|
|
70 |
@end |