lpw
2024-06-28 2a6e182ea4428bff2e16f033c28850f3a02a93a9
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_Basics/FBSDKCrashHandlerProtocol.h>
12 #import <FBSDKCoreKit_Basics/FBSDKCrashObserving.h>
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 NS_SWIFT_NAME(CrashHandler)
17 @interface FBSDKCrashHandler : NSObject <FBSDKCrashHandler>
18
19 @property (class, nonatomic, readonly) FBSDKCrashHandler *shared;
20
21 - (instancetype)init NS_UNAVAILABLE;
22 + (instancetype)new NS_UNAVAILABLE;
23
24 + (void)disable;
25 + (void)addObserver:(id<FBSDKCrashObserving>)observer;
26 + (void)removeObserver:(id<FBSDKCrashObserving>)observer;
27 + (void)clearCrashReportFiles;
28 + (NSString *)getFBSDKVersion;
29 - (void)saveException:(NSException *)exception;
30
31 - (void)disable;
32
33 @end
34
35 NS_ASSUME_NONNULL_END