FBSDKInstrumentManager.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. NS_ASSUME_NONNULL_BEGIN
  10. @protocol FBSDKFeatureChecking;
  11. @protocol FBSDKSettings;
  12. @protocol FBSDKCrashObserving;
  13. @protocol FBSDKErrorReporting;
  14. @protocol FBSDKCrashHandler;
  15. /**
  16. Internal type exposed to facilitate transition to Swift.
  17. API Subject to change or removal without warning. Do not use.
  18. @warning INTERNAL - DO NOT USE
  19. */
  20. NS_SWIFT_NAME(_InstrumentManager)
  21. @interface FBSDKInstrumentManager : NSObject
  22. @property (class, nonatomic, readonly) FBSDKInstrumentManager *shared;
  23. - (instancetype)init NS_UNAVAILABLE;
  24. + (instancetype)new NS_UNAVAILABLE;
  25. // UNCRUSTIFY_FORMAT_OFF
  26. - (void)configureWithFeatureChecker:(id<FBSDKFeatureChecking>)featureChecker
  27. settings:(id<FBSDKSettings>)settings
  28. crashObserver:(id<FBSDKCrashObserving>)crashObserver
  29. errorReporter:(id<FBSDKErrorReporting>)errorReporter
  30. crashHandler:(id<FBSDKCrashHandler>)crashHandler
  31. NS_SWIFT_NAME(configure(featureChecker:settings:crashObserver:errorReporter:crashHandler:));
  32. // UNCRUSTIFY_FORMAT_ON
  33. - (void)enable;
  34. @end
  35. NS_ASSUME_NONNULL_END