FBSDKAppEventsConfigurationManager.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 <Foundation/Foundation.h>
  9. #import <FBSDKCoreKit/FBSDKAppEventsConfigurationProviding.h>
  10. typedef void (^FBSDKAppEventsConfigurationManagerBlock)(void);
  11. @protocol FBSDKDataPersisting;
  12. @protocol FBSDKSettings;
  13. @protocol FBSDKGraphRequestFactory;
  14. @protocol FBSDKGraphRequestConnectionFactory;
  15. @protocol FBSDKAppEventsConfiguration;
  16. NS_ASSUME_NONNULL_BEGIN
  17. /**
  18. Internal type exposed to facilitate transition to Swift.
  19. API Subject to change or removal without warning. Do not use.
  20. @warning INTERNAL - DO NOT USE
  21. */
  22. NS_SWIFT_NAME(_AppEventsConfigurationManager)
  23. @interface FBSDKAppEventsConfigurationManager : NSObject <FBSDKAppEventsConfigurationProviding>
  24. @property (class, nonatomic, readonly) FBSDKAppEventsConfigurationManager *shared;
  25. @property (nonatomic, readonly) id<FBSDKAppEventsConfiguration> cachedAppEventsConfiguration;
  26. #if !DEBUG
  27. - (instancetype)init NS_UNAVAILABLE;
  28. + (instancetype)new NS_UNAVAILABLE;
  29. #endif
  30. // UNCRUSTIFY_FORMAT_OFF
  31. - (void) configureWithStore:(id<FBSDKDataPersisting>)store
  32. settings:(id<FBSDKSettings>)settings
  33. graphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory
  34. graphRequestConnectionFactory:(id<FBSDKGraphRequestConnectionFactory>)graphRequestConnectionFactory
  35. NS_SWIFT_NAME(configure(store:settings:graphRequestFactory:graphRequestConnectionFactory:));
  36. // UNCRUSTIFY_FORMAT_ON
  37. - (void)loadAppEventsConfigurationWithBlock:(FBSDKAppEventsConfigurationManagerBlock)block;
  38. @end
  39. NS_ASSUME_NONNULL_END