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