commit | author | age
|
e0ec42
|
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 <FBSDKCoreKit/FBSDKAppEvents.h> |
|
10 |
#import <FBSDKCoreKit/FBSDKAppEventUserDataType.h> |
|
11 |
#import <FBSDKCoreKit/FBSDKUserDataPersisting.h> |
|
12 |
#import <Foundation/Foundation.h> |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
/** |
|
17 |
Internal type exposed to facilitate transition to Swift. |
|
18 |
API Subject to change or removal without warning. Do not use. |
|
19 |
|
|
20 |
@warning INTERNAL - DO NOT USE |
|
21 |
*/ |
|
22 |
NS_SWIFT_NAME(_UserDataStore) |
|
23 |
@interface FBSDKUserDataStore : NSObject <FBSDKUserDataPersisting> |
|
24 |
|
|
25 |
/* |
|
26 |
Sets custom user data to associate with all app events. All user data are hashed |
|
27 |
and used to match Facebook user from this instance of an application. |
|
28 |
|
|
29 |
The user data will be persisted between application instances. |
|
30 |
|
|
31 |
@param email user's email |
|
32 |
@param firstName user's first name |
|
33 |
@param lastName user's last name |
|
34 |
@param phone user's phone |
|
35 |
@param dateOfBirth user's date of birth |
|
36 |
@param gender user's gender |
|
37 |
@param city user's city |
|
38 |
@param state user's state |
|
39 |
@param zip user's zip |
|
40 |
@param country user's country |
|
41 |
@param externalId user's external id |
|
42 |
*/ |
|
43 |
// UNCRUSTIFY_FORMAT_OFF |
|
44 |
- (void)setUserEmail:(nullable NSString *)email |
|
45 |
firstName:(nullable NSString *)firstName |
|
46 |
lastName:(nullable NSString *)lastName |
|
47 |
phone:(nullable NSString *)phone |
|
48 |
dateOfBirth:(nullable NSString *)dateOfBirth |
|
49 |
gender:(nullable NSString *)gender |
|
50 |
city:(nullable NSString *)city |
|
51 |
state:(nullable NSString *)state |
|
52 |
zip:(nullable NSString *)zip |
|
53 |
country:(nullable NSString *)country |
|
54 |
externalId:(nullable NSString *)externalId |
|
55 |
NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:externalId:)); |
|
56 |
// UNCRUSTIFY_FORMAT_ON |
|
57 |
|
|
58 |
/* |
|
59 |
Returns the set user data else nil |
|
60 |
*/ |
|
61 |
- (nullable NSString *)getUserData; |
|
62 |
|
|
63 |
/* |
|
64 |
Clears the current user data |
|
65 |
*/ |
|
66 |
- (void)clearUserData; |
|
67 |
|
|
68 |
/* |
|
69 |
Sets custom user data to associate with all app events. All user data are hashed |
|
70 |
and used to match Facebook user from this instance of an application. |
|
71 |
|
|
72 |
The user data will be persisted between application instances. |
|
73 |
|
|
74 |
@param data data |
|
75 |
@param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone |
|
76 |
*/ |
|
77 |
- (void)setUserData:(nullable NSString *)data |
|
78 |
forType:(FBSDKAppEventUserDataType)type; |
|
79 |
|
|
80 |
/* |
|
81 |
Clears the current user data of certain type |
|
82 |
*/ |
|
83 |
- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; |
|
84 |
|
|
85 |
@end |
|
86 |
|
|
87 |
NS_ASSUME_NONNULL_END |