Skip to content

Commit

Permalink
Merge 75f59bf into 5dc32b3
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Nov 14, 2022
2 parents 5dc32b3 + 75f59bf commit 0b4a86b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Sentry/PrivateSentrySDKOnly.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "SentrySerialization.h"
#import <SentryDependencyContainer.h>
#import <SentryFramesTracker.h>
#import <SentryScreenshot.h>

@implementation PrivateSentrySDKOnly

Expand Down Expand Up @@ -120,6 +121,11 @@ + (SentryScreenFrames *)currentScreenFrames
return [SentryFramesTracker sharedInstance].currentFrames;
}

+ (NSArray<NSData *> *)captureScreenshots
{
return [SentryDependencyContainer.sharedInstance.screenshot takeScreenshots];
}

#endif

@end
2 changes: 2 additions & 0 deletions Sources/Sentry/include/SentryScreenshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ NS_ASSUME_NONNULL_BEGIN
- (nullable NSArray<NSData *> *)appScreenshots;

- (void)saveScreenShots:(NSString *)path;

- (NSArray<NSData *> *)takeScreenshots;
@end

NS_ASSUME_NONNULL_END
Expand Down

0 comments on commit 0b4a86b

Please sign in to comment.