@@ -34,6 +34,10 @@ namespace Sentry.CocoaSdk;
3434[ Internal ]
3535delegate SentrySpan SentryBeforeSendSpanCallback ( SentrySpan span ) ;
3636
37+ // typedef SentryLog * _Nullable (^SentryBeforeSendLogCallback)(SentryLog * _Nonnull);
38+ [ Internal ]
39+ delegate SentryLog SentryBeforeSendLogCallback ( SentryLog log ) ;
40+
3741// typedef BOOL (^SentryBeforeCaptureScreenshotCallback)(SentryEvent * _Nonnull);
3842[ Internal ]
3943delegate bool SentryBeforeCaptureScreenshotCallback ( SentryEvent @event ) ;
@@ -611,11 +615,11 @@ interface SentryException : SentrySerializable
611615[ Internal ]
612616interface SentryFeedbackAPI
613617{
614- // -(void)showWidget __attribute__((availability(ios, introduced=13.0)));
618+ // -(void)showWidget __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(macos_app_extension, unavailable))) __attribute__((availability(ios_app_extension, unavailable))) ;
615619 [ Export ( "showWidget" ) ]
616620 void ShowWidget ( ) ;
617621
618- // -(void)hideWidget __attribute__((availability(ios, introduced=13.0)));
622+ // -(void)hideWidget __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(macos_app_extension, unavailable))) __attribute__((availability(ios_app_extension, unavailable))) ;
619623 [ Export ( "hideWidget" ) ]
620624 void HideWidget ( ) ;
621625}
@@ -669,13 +673,29 @@ interface SentryFrame : SentrySerializable
669673 [ NullAllowed , Export ( "columnNumber" , ArgumentSemantic . Copy ) ]
670674 NSNumber ColumnNumber { get ; set ; }
671675
676+ // @property (copy, nonatomic) NSString * _Nullable contextLine;
677+ [ NullAllowed , Export ( "contextLine" ) ]
678+ string ContextLine { get ; set ; }
679+
680+ // @property (copy, nonatomic) NSArray<NSString *> * _Nullable preContext;
681+ [ NullAllowed , Export ( "preContext" , ArgumentSemantic . Copy ) ]
682+ string [ ] PreContext { get ; set ; }
683+
684+ // @property (copy, nonatomic) NSArray<NSString *> * _Nullable postContext;
685+ [ NullAllowed , Export ( "postContext" , ArgumentSemantic . Copy ) ]
686+ string [ ] PostContext { get ; set ; }
687+
672688 // @property (copy, nonatomic) NSNumber * _Nullable inApp;
673689 [ NullAllowed , Export ( "inApp" , ArgumentSemantic . Copy ) ]
674690 NSNumber InApp { get ; set ; }
675691
676692 // @property (copy, nonatomic) NSNumber * _Nullable stackStart;
677693 [ NullAllowed , Export ( "stackStart" , ArgumentSemantic . Copy ) ]
678694 NSNumber StackStart { get ; set ; }
695+
696+ // @property (copy, nonatomic) NSDictionary<NSString *,id> * _Nullable vars;
697+ [ NullAllowed , Export ( "vars" , ArgumentSemantic . Copy ) ]
698+ NSDictionary < NSString , NSObject > Vars { get ; set ; }
679699}
680700
681701// @interface SentryGeo : NSObject <SentrySerializable, NSCopying>
@@ -1389,6 +1409,10 @@ interface SentryOptions
13891409 [ NullAllowed , Export ( "beforeSendSpan" , ArgumentSemantic . Copy ) ]
13901410 SentryBeforeSendSpanCallback BeforeSendSpan { get ; set ; }
13911411
1412+ // @property (copy, nonatomic) SentryBeforeSendLogCallback _Nullable beforeSendLog;
1413+ [ NullAllowed , Export ( "beforeSendLog" , ArgumentSemantic . Copy ) ]
1414+ SentryBeforeSendLogCallback BeforeSendLog { get ; set ; }
1415+
13921416 // @property (copy, nonatomic) SentryBeforeBreadcrumbCallback _Nullable beforeBreadcrumb;
13931417 [ NullAllowed , Export ( "beforeBreadcrumb" , ArgumentSemantic . Copy ) ]
13941418 SentryBeforeBreadcrumbCallback BeforeBreadcrumb { get ; set ; }
@@ -1405,8 +1429,8 @@ interface SentryOptions
14051429 [ NullAllowed , Export ( "onCrashedLastRun" , ArgumentSemantic . Copy ) ]
14061430 SentryOnCrashedLastRunCallback OnCrashedLastRun { get ; set ; }
14071431
1408- // @property (copy, nonatomic) NSArray<NSString *> * _Nullable integrations;
1409- [ NullAllowed , Export ( "integrations" , ArgumentSemantic . Copy ) ]
1432+ // @property (copy, nonatomic) DEPRECATED_MSG_ATTRIBUTE("Setting `SentryOptions.integrations` is deprecated. Integrations should be enabled or disabled using their respective `SentryOptions.enable*` property.") NSArray<NSString *> * integrations __attribute__((deprecated("Setting `SentryOptions. integrations` is deprecated. Integrations should be enabled or disabled using their respective `SentryOptions.enable*` property."))) ;
1433+ [ Export ( "integrations" , ArgumentSemantic . Copy ) ]
14101434 string [ ] Integrations { get ; set ; }
14111435
14121436 // +(NSArray<NSString *> * _Nonnull)defaultIntegrations;
@@ -2311,10 +2335,10 @@ interface PrivateSentrySDKOnly
23112335 [ Export ( "captureViewHierarchy" ) ]
23122336 NSData CaptureViewHierarchy ( ) ;
23132337
2314- // +(void)setCurrentScreen:(NSString * _Nonnull )screenName;
2338+ // +(void)setCurrentScreen:(NSString * _Nullable )screenName;
23152339 [ Static ]
23162340 [ Export ( "setCurrentScreen:" ) ]
2317- void SetCurrentScreen ( string screenName ) ;
2341+ void SetCurrentScreen ( [ NullAllowed ] string screenName ) ;
23182342
23192343 // +(UIView * _Nonnull)sessionReplayMaskingOverlay:(id<SentryRedactOptions> _Nonnull)options;
23202344 [ Static ]
0 commit comments