@@ -556,6 +556,103 @@ interface SentrySDK
556556 void ClearLogger ( ) ;
557557}
558558
559+ // @interface SentrySession : NSObject <NSCopying>
560+ [ BaseType ( typeof ( NSObject ) , Name = "_TtC6Sentry13SentrySession" ) ]
561+ [ DisableDefaultCtor ]
562+ [ Internal ]
563+ interface SentrySession
564+ {
565+ // -(instancetype _Nonnull)initWithReleaseName:(NSString * _Nonnull)releaseName distinctId:(NSString * _Nonnull)distinctId __attribute__((objc_designated_initializer));
566+ [ Export ( "initWithReleaseName:distinctId:" ) ]
567+ [ DesignatedInitializer ]
568+ NativeHandle Constructor ( string releaseName , string distinctId ) ;
569+
570+ // -(instancetype _Nullable)initWithJSONObject:(NSDictionary<NSString *,id> * _Nonnull)jsonObject __attribute__((objc_designated_initializer));
571+ [ Export ( "initWithJSONObject:" ) ]
572+ [ DesignatedInitializer ]
573+ NativeHandle Constructor ( NSDictionary < NSString , NSObject > jsonObject ) ;
574+
575+ // -(void)endSessionExitedWithTimestamp:(NSDate * _Nonnull)timestamp;
576+ [ Export ( "endSessionExitedWithTimestamp:" ) ]
577+ void EndSessionExitedWithTimestamp ( NSDate timestamp ) ;
578+
579+ // -(void)endSessionCrashedWithTimestamp:(NSDate * _Nonnull)timestamp;
580+ [ Export ( "endSessionCrashedWithTimestamp:" ) ]
581+ void EndSessionCrashedWithTimestamp ( NSDate timestamp ) ;
582+
583+ // -(void)endSessionAbnormalWithTimestamp:(NSDate * _Nonnull)timestamp;
584+ [ Export ( "endSessionAbnormalWithTimestamp:" ) ]
585+ void EndSessionAbnormalWithTimestamp ( NSDate timestamp ) ;
586+
587+ // -(void)incrementErrors;
588+ [ Export ( "incrementErrors" ) ]
589+ void IncrementErrors ( ) ;
590+
591+ // @property (readonly, copy, nonatomic) NSUUID * _Nonnull sessionId;
592+ [ Export ( "sessionId" , ArgumentSemantic . Copy ) ]
593+ NSUuid SessionId { get ; }
594+
595+ // @property (readonly, copy, nonatomic) NSDate * _Nonnull started;
596+ [ Export ( "started" , ArgumentSemantic . Copy ) ]
597+ NSDate Started { get ; }
598+
599+ // @property (readonly, nonatomic) enum SentrySessionStatus status;
600+ [ Export ( "status" ) ]
601+ SentrySessionStatus Status { get ; }
602+
603+ // @property (nonatomic) NSUInteger errors;
604+ [ Export ( "errors" ) ]
605+ nuint Errors { get ; set ; }
606+
607+ // @property (readonly, nonatomic) NSUInteger sequence;
608+ [ Export ( "sequence" ) ]
609+ nuint Sequence { get ; }
610+
611+ // @property (readonly, copy, nonatomic) NSString * _Nonnull distinctId;
612+ [ Export ( "distinctId" ) ]
613+ string DistinctId { get ; }
614+
615+ // @property (readonly, nonatomic, strong) NSNumber * _Nullable flagInit;
616+ [ NullAllowed , Export ( "flagInit" , ArgumentSemantic . Strong ) ]
617+ NSNumber FlagInit { get ; }
618+
619+ // @property (readonly, copy, nonatomic) NSDate * _Nullable timestamp;
620+ [ NullAllowed , Export ( "timestamp" , ArgumentSemantic . Copy ) ]
621+ NSDate Timestamp { get ; }
622+
623+ // @property (readonly, nonatomic, strong) NSNumber * _Nullable duration;
624+ [ NullAllowed , Export ( "duration" , ArgumentSemantic . Strong ) ]
625+ NSNumber Duration { get ; }
626+
627+ // @property (readonly, copy, nonatomic) NSString * _Nullable releaseName;
628+ [ NullAllowed , Export ( "releaseName" ) ]
629+ string ReleaseName { get ; }
630+
631+ // @property (copy, nonatomic) NSString * _Nullable environment;
632+ [ NullAllowed , Export ( "environment" ) ]
633+ string Environment { get ; set ; }
634+
635+ // @property (nonatomic, strong) SentryUser * _Nullable user;
636+ [ NullAllowed , Export ( "user" , ArgumentSemantic . Strong ) ]
637+ SentryUser User { get ; set ; }
638+
639+ // @property (copy, nonatomic) NSString * _Nullable abnormalMechanism;
640+ [ NullAllowed , Export ( "abnormalMechanism" ) ]
641+ string AbnormalMechanism { get ; set ; }
642+
643+ // -(NSDictionary<NSString *,id> * _Nonnull)serialize __attribute__((warn_unused_result("")));
644+ [ Export ( "serialize" ) ]
645+ NSDictionary < NSString , NSObject > Serialize ( ) ;
646+
647+ // -(void)setFlagInit;
648+ [ Export ( "setFlagInit" ) ]
649+ void SetFlagInit ( ) ;
650+
651+ // -(id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone __attribute__((warn_unused_result("")));
652+ // [Export ("copyWithZone:")]
653+ // unsafe NSObject CopyWithZone ([NullAllowed] _NSZone* zone);
654+ }
655+
559656// @interface SentryUserFeedback : NSObject <SentrySerializable>
560657[ BaseType ( typeof ( NSObject ) ) ]
561658[ DisableDefaultCtor ]
@@ -750,6 +847,41 @@ interface SentryUserFeedbackWidgetConfiguration
750847// IntPtr Constructor();
751848// }
752849
850+ // @interface SentryViewScreenshotOptions : NSObject <SentryRedactOptions>
851+ [ BaseType ( typeof ( NSObject ) , Name = "_TtC6Sentry27SentryViewScreenshotOptions" ) ]
852+ [ Internal ]
853+ interface SentryViewScreenshotOptions //: ISentryRedactOptions
854+ {
855+ // @property (nonatomic) BOOL enableViewRendererV2;
856+ [ Export ( "enableViewRendererV2" ) ]
857+ bool EnableViewRendererV2 { get ; set ; }
858+
859+ // @property (nonatomic) BOOL enableFastViewRendering;
860+ [ Export ( "enableFastViewRendering" ) ]
861+ bool EnableFastViewRendering { get ; set ; }
862+
863+ // @property (nonatomic) BOOL maskAllImages;
864+ [ Export ( "maskAllImages" ) ]
865+ bool MaskAllImages { get ; set ; }
866+
867+ // @property (nonatomic) BOOL maskAllText;
868+ [ Export ( "maskAllText" ) ]
869+ bool MaskAllText { get ; set ; }
870+
871+ // @property (copy, nonatomic) NSArray<Class> * _Nonnull maskedViewClasses;
872+ [ Export ( "maskedViewClasses" , ArgumentSemantic . Copy ) ]
873+ Class [ ] MaskedViewClasses { get ; set ; }
874+
875+ // @property (copy, nonatomic) NSArray<Class> * _Nonnull unmaskedViewClasses;
876+ [ Export ( "unmaskedViewClasses" , ArgumentSemantic . Copy ) ]
877+ Class [ ] UnmaskedViewClasses { get ; set ; }
878+
879+ // -(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));
880+ [ Export ( "initWithEnableViewRendererV2:enableFastViewRendering:maskAllText:maskAllImages:maskedViewClasses:unmaskedViewClasses:" ) ]
881+ [ DesignatedInitializer ]
882+ NativeHandle Constructor ( bool enableViewRendererV2 , bool enableFastViewRendering , bool maskAllText , bool maskAllImages , Class [ ] maskedViewClasses , Class [ ] unmaskedViewClasses ) ;
883+ }
884+
753885// @protocol SentryViewScreenshotProvider <NSObject>
754886[ Protocol ( Name = "_TtP6Sentry28SentryViewScreenshotProvider_" ) ]
755887[ Model ]
0 commit comments