| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // JXCrashHandler.h
- // AICity
- //
- // Feature: 003-ios-api-https
- // 剧星平台崩溃处理器
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface JXCrashInfo : NSObject
- @property (nonatomic, assign) NSTimeInterval timestamp;
- @property (nonatomic, strong) NSString *exceptionName;
- @property (nonatomic, strong) NSString *exceptionReason;
- @property (nonatomic, strong) NSArray<NSString *> *callStack;
- @property (nonatomic, strong) NSDictionary *deviceInfo;
- @property (nonatomic, strong) NSDictionary *appInfo;
- @end
- @interface JXCrashHandler : NSObject
- + (instancetype)sharedHandler;
- - (void)installCrashHandler;
- - (void)uninstallCrashHandler;
- // 崩溃日志管理
- - (NSArray<NSString *> *)getLocalCrashLogs;
- - (void)cleanupOldCrashLogs:(NSTimeInterval)maxAge;
- // 手动上报崩溃信息
- - (void)reportCrashInfo:(JXCrashInfo *)crashInfo;
- @end
- NS_ASSUME_NONNULL_END
|