FBSDKUserDataPersisting.h 1.7 KB

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