Skip to content

Commit 0847a67

Browse files
committed
Add SentryViewScreenshotOptions
1 parent 690532d commit 0847a67

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

src/Sentry.Bindings.Cocoa/ApiDefinitions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,10 @@ interface SentryOptions
14941494
[Export ("attachScreenshot")]
14951495
bool AttachScreenshot { get; set; }
14961496

1497+
// @property (nonatomic, strong) SentryViewScreenshotOptions * _Nonnull screenshot;
1498+
[Export ("screenshot", ArgumentSemantic.Strong)]
1499+
SentryViewScreenshotOptions Screenshot { get; set; }
1500+
14971501
// @property (assign, nonatomic) BOOL attachViewHierarchy;
14981502
[Export ("attachViewHierarchy")]
14991503
bool AttachViewHierarchy { get; set; }

src/Sentry.Bindings.Cocoa/SwiftApiDefinitions.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,41 @@ interface SentryUserFeedbackWidgetConfiguration
750750
// IntPtr Constructor();
751751
// }
752752

753+
// @interface SentryViewScreenshotOptions : NSObject <SentryRedactOptions>
754+
[BaseType (typeof(NSObject), Name = "_TtC6Sentry27SentryViewScreenshotOptions")]
755+
[Internal]
756+
interface SentryViewScreenshotOptions //: ISentryRedactOptions
757+
{
758+
// @property (nonatomic) BOOL enableViewRendererV2;
759+
[Export ("enableViewRendererV2")]
760+
bool EnableViewRendererV2 { get; set; }
761+
762+
// @property (nonatomic) BOOL enableFastViewRendering;
763+
[Export ("enableFastViewRendering")]
764+
bool EnableFastViewRendering { get; set; }
765+
766+
// @property (nonatomic) BOOL maskAllImages;
767+
[Export ("maskAllImages")]
768+
bool MaskAllImages { get; set; }
769+
770+
// @property (nonatomic) BOOL maskAllText;
771+
[Export ("maskAllText")]
772+
bool MaskAllText { get; set; }
773+
774+
// @property (copy, nonatomic) NSArray<Class> * _Nonnull maskedViewClasses;
775+
[Export ("maskedViewClasses", ArgumentSemantic.Copy)]
776+
Class[] MaskedViewClasses { get; set; }
777+
778+
// @property (copy, nonatomic) NSArray<Class> * _Nonnull unmaskedViewClasses;
779+
[Export ("unmaskedViewClasses", ArgumentSemantic.Copy)]
780+
Class[] UnmaskedViewClasses { get; set; }
781+
782+
// -(instancetype _Nonnull)initWithEnableViewRendererV2:(BOOL)enableViewRendererV2 enableFastViewRendering:(BOOL)enableFastViewRendering maskAllText:(BOOL)maskAllText maskAllImages:(BOOL)maskAllImages maskedViewClasses:(NSArray<Class> * _Nonnull)maskedViewClasses unmaskedViewClasses:(NSArray<Class> * _Nonnull)unmaskedViewClasses __attribute__((objc_designated_initializer));
783+
[Export ("initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:")]
784+
[DesignatedInitializer]
785+
NativeHandle Constructor (bool enableViewRendererV2, bool enableFastViewRendering, bool maskAllText, bool maskAllImages, Class[] maskedViewClasses, Class[] unmaskedViewClasses);
786+
}
787+
753788
// @protocol SentryViewScreenshotProvider <NSObject>
754789
[Protocol (Name = "_TtP6Sentry28SentryViewScreenshotProvider_")]
755790
[Model]

0 commit comments

Comments
 (0)