lpw
2024-06-24 14dac3416fa64cec3ca6523835297bf7a4d7d9bd
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/FBSDKAppEventUserDataType.h>
10 #import <Foundation/Foundation.h>
11
12 NS_ASSUME_NONNULL_BEGIN
13
14 /**
15  Internal type exposed to facilitate transition to Swift.
16  API Subject to change or removal without warning. Do not use.
17
18  @warning INTERNAL - DO NOT USE
19  */
20 NS_SWIFT_NAME(_UserDataPersisting)
21 @protocol FBSDKUserDataPersisting
22
23 // UNCRUSTIFY_FORMAT_OFF
24 - (void)setUserEmail:(nullable NSString *)email
25            firstName:(nullable NSString *)firstName
26             lastName:(nullable NSString *)lastName
27                phone:(nullable NSString *)phone
28          dateOfBirth:(nullable NSString *)dateOfBirth
29               gender:(nullable NSString *)gender
30                 city:(nullable NSString *)city
31                state:(nullable NSString *)state
32                  zip:(nullable NSString *)zip
33              country:(nullable NSString *)country
34           externalId:(nullable NSString *)externalId
35 NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:externalId:));
36 // UNCRUSTIFY_FORMAT_ON
37
38 - (nullable NSString *)getUserData;
39
40 - (void)clearUserData;
41
42 - (void)setUserData:(nullable NSString *)data
43             forType:(FBSDKAppEventUserDataType)type;
44
45 - (void)clearUserDataForType:(FBSDKAppEventUserDataType)type;
46
47 - (void)setEnabledRules:(NSArray<NSString *> *)rules;
48
49 - (nullable NSString *)getInternalHashedDataForType:(FBSDKAppEventUserDataType)type;
50
51 - (void)setInternalHashData:(nullable NSString *)hashData
52                     forType:(FBSDKAppEventUserDataType)type;
53
54 @end
55
56 NS_ASSUME_NONNULL_END