48 lines
1.8 KiB
C
48 lines
1.8 KiB
C
|
|
#import <Foundation/Foundation.h>
|
||
|
|
|
||
|
|
#if __has_include(<Sentry/SentryDefines.h>)
|
||
|
|
# import <Sentry/SentryDefines.h>
|
||
|
|
#else
|
||
|
|
# import "SentryDefines.h"
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#if __has_include(<Sentry/SentrySessionReplayIntegration.h>)
|
||
|
|
# import <Sentry/SentrySessionReplayIntegration.h>
|
||
|
|
#else
|
||
|
|
# import "SentrySessionReplayIntegration.h"
|
||
|
|
#endif
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
#if SENTRY_TARGET_REPLAY_SUPPORTED
|
||
|
|
@class SentryReplayOptions;
|
||
|
|
|
||
|
|
@protocol SentryViewScreenshotProvider;
|
||
|
|
@protocol SentryReplayBreadcrumbConverter;
|
||
|
|
@protocol SentryRRWebEvent;
|
||
|
|
|
||
|
|
@interface SentrySessionReplayIntegration ()
|
||
|
|
|
||
|
|
- (void)startWithOptions:(SentryReplayOptions *)replayOptions
|
||
|
|
screenshotProvider:(id<SentryViewScreenshotProvider>)screenshotProvider
|
||
|
|
breadcrumbConverter:(id<SentryReplayBreadcrumbConverter>)breadcrumbConverter
|
||
|
|
fullSession:(BOOL)shouldReplayFullSession;
|
||
|
|
|
||
|
|
+ (id<SentryRRWebEvent>)createBreadcrumbwithTimestamp:(NSDate *)timestamp
|
||
|
|
category:(NSString *)category
|
||
|
|
message:(nullable NSString *)message
|
||
|
|
level:(enum SentryLevel)level
|
||
|
|
data:(nullable NSDictionary<NSString *, id> *)data;
|
||
|
|
|
||
|
|
+ (id<SentryRRWebEvent>)createNetworkBreadcrumbWithTimestamp:(NSDate *)timestamp
|
||
|
|
endTimestamp:(NSDate *)endTimestamp
|
||
|
|
operation:(NSString *)operation
|
||
|
|
description:(NSString *)description
|
||
|
|
data:(NSDictionary<NSString *, id> *)data;
|
||
|
|
|
||
|
|
+ (id<SentryReplayBreadcrumbConverter>)createDefaultBreadcrumbConverter;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
#endif
|
||
|
|
NS_ASSUME_NONNULL_END
|