commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import "TargetConditionals.h" |
|
10 |
|
|
11 |
#if !TARGET_OS_TV |
|
12 |
|
|
13 |
#import <Foundation/Foundation.h> |
|
14 |
|
|
15 |
#import <FBSDKLoginKit/FBSDKReferralCode.h> |
|
16 |
|
|
17 |
NS_ASSUME_NONNULL_BEGIN |
|
18 |
|
|
19 |
/** |
|
20 |
Describes the result of a referral request. |
|
21 |
*/ |
|
22 |
NS_SWIFT_NAME(ReferralManagerResult) |
|
23 |
DEPRECATED_MSG_ATTRIBUTE("`FBSDKReferralCode` is deprecated and will be removed in the next major release") |
|
24 |
@interface FBSDKReferralManagerResult : NSObject |
|
25 |
|
|
26 |
- (instancetype)init NS_UNAVAILABLE; |
|
27 |
+ (instancetype)new NS_UNAVAILABLE; |
|
28 |
|
|
29 |
/** |
|
30 |
whether the referral was cancelled by the user. |
|
31 |
*/ |
|
32 |
@property (nonatomic, readonly) BOOL isCancelled; |
|
33 |
|
|
34 |
/** |
|
35 |
An array of referral codes for each referral made by the user |
|
36 |
*/ |
|
37 |
@property (nonatomic, copy) NSArray<FBSDKReferralCode *> *referralCodes; |
|
38 |
|
|
39 |
/** Initializes a new instance. |
|
40 |
@param referralCodes the referral codes |
|
41 |
@param isCancelled whether the referral was cancelled by the user |
|
42 |
*/ |
|
43 |
- (instancetype)initWithReferralCodes:(nullable NSArray<FBSDKReferralCode *> *)referralCodes |
|
44 |
isCancelled:(BOOL)isCancelled |
|
45 |
NS_DESIGNATED_INITIALIZER; |
|
46 |
@end |
|
47 |
|
|
48 |
NS_ASSUME_NONNULL_END |
|
49 |
|
|
50 |
#endif |