FBSDKAppEventsUtility.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/FBSDKAppEventParametersExtracting.h>
  9. #import <FBSDKCoreKit/FBSDKAppEventsFlushReason.h>
  10. #import <FBSDKCoreKit/FBSDKAppEventsUtilityProtocol.h>
  11. #import <FBSDKCoreKit/FBSDKLoggingNotifying.h>
  12. #import <Foundation/Foundation.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. /**
  15. Internal type exposed to facilitate transition to Swift.
  16. API Subject to change or removal without warning. Do not use.
  17. @warning INTERNAL - DO NOT USE
  18. */
  19. NS_SWIFT_NAME(_AppEventsUtility)
  20. @interface FBSDKAppEventsUtility : NSObject <FBSDKAdvertiserIDProviding, FBSDKAppEventDropDetermining, FBSDKAppEventParametersExtracting, FBSDKAppEventsUtility, FBSDKLoggingNotifying>
  21. #if !DEBUG
  22. - (instancetype)init NS_UNAVAILABLE;
  23. + (instancetype)new NS_UNAVAILABLE;
  24. #endif
  25. @property (class, nonatomic) FBSDKAppEventsUtility *shared;
  26. @property (nullable, nonatomic, readonly, copy) NSString *advertiserID;
  27. @property (nonatomic, readonly) BOOL isDebugBuild;
  28. @property (nonatomic, readonly) BOOL shouldDropAppEvents;
  29. @property (nullable, nonatomic) id<FBSDKAppEventsConfigurationProviding> appEventsConfigurationProvider;
  30. @property (nullable, nonatomic) id<FBSDKDeviceInformationProviding> deviceInformationProvider;
  31. @property (nullable, nonatomic) id<FBSDKSettings> settings;
  32. @property (nullable, nonatomic) id<FBSDKInternalUtility> internalUtility;
  33. @property (nullable, nonatomic) id<FBSDKErrorCreating> errorFactory;
  34. @property (nullable, nonatomic) id<FBSDKDataPersisting> dataStore;
  35. - (BOOL)isSensitiveUserData:(NSString *)text;
  36. - (BOOL)isStandardEvent:(nullable NSString *)event;
  37. // UNCRUSTIFY_FORMAT_OFF
  38. - (void)configureWithAppEventsConfigurationProvider:(id<FBSDKAppEventsConfigurationProviding>)appEventsConfigurationProvider
  39. deviceInformationProvider:(id<FBSDKDeviceInformationProviding>)deviceInformationProvider
  40. settings:(id<FBSDKSettings>)settings
  41. internalUtility:(id<FBSDKInternalUtility>)internalUtility
  42. errorFactory:(id<FBSDKErrorCreating>)errorFactory
  43. dataStore:(id<FBSDKDataPersisting>)dataStore
  44. NS_SWIFT_NAME(configure(appEventsConfigurationProvider:deviceInformationProvider:settings:internalUtility:errorFactory:dataStore:));
  45. // UNCRUSTIFY_FORMAT_ON
  46. #if DEBUG
  47. - (void)reset;
  48. #endif
  49. @end
  50. NS_ASSUME_NONNULL_END