lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
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 #import <FBSDKCoreKit/FBSDKErrorReporting.h>
12
13 @protocol FBSDKGraphRequestFactory;
14 @protocol FBSDKFileManaging;
15 @protocol FBSDKSettings;
16 @protocol FBSDKFileDataExtracting;
17
18 NS_ASSUME_NONNULL_BEGIN
19
20 /**
21  Internal Type exposed to facilitate transition to Swift.
22  API Subject to change or removal without warning. Do not use.
23
24  @warning INTERNAL - DO NOT USE
25  */
26 NS_SWIFT_NAME(ErrorReporter)
27 @interface FBSDKErrorReporter : NSObject <FBSDKErrorReporting>
28
29 @property (class, nonatomic, readonly) FBSDKErrorReporter *shared;
30
31 @property (nonatomic, strong) id<FBSDKGraphRequestFactory> graphRequestFactory;
32 @property (nonatomic, strong) id<FBSDKFileManaging> fileManager;
33 @property (nonatomic, strong) id<FBSDKSettings> settings;
34 @property (nonatomic, strong) Class<FBSDKFileDataExtracting> dataExtractor;
35 @property (nonatomic, readonly, strong) NSString *directoryPath;
36 @property (nonatomic) BOOL isEnabled;
37
38 - (instancetype)init NS_UNAVAILABLE;
39 + (instancetype)new NS_UNAVAILABLE;
40
41 - (void)saveError:(NSInteger)errorCode
42       errorDomain:(NSErrorDomain)errorDomain
43           message:(nullable NSString *)message;
44
45 - (instancetype)initWithGraphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory
46                                 fileManager:(id<FBSDKFileManaging>)fileManager
47                                    settings:(id<FBSDKSettings>)settings
48                           fileDataExtractor:(Class<FBSDKFileDataExtracting>)dataExtractor;
49 - (void)enable;
50
51 @end
52
53 NS_ASSUME_NONNULL_END