@@ -66,6 +66,61 @@ interface SentryId
66
66
nuint Hash { get ; }
67
67
}
68
68
69
+ // @interface SentryLogger : NSObject
70
+ [ BaseType ( typeof ( NSObject ) , Name = "_TtC6Sentry12SentryLogger" ) ]
71
+ [ DisableDefaultCtor ]
72
+ [ Internal ]
73
+ interface SentryLogger
74
+ {
75
+ // -(void)trace:(NSString * _Nonnull)body;
76
+ [ Export ( "trace:" ) ]
77
+ void Trace ( string body ) ;
78
+
79
+ // -(void)trace:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
80
+ [ Export ( "trace:attributes:" ) ]
81
+ void Trace ( string body , NSDictionary < NSString , NSObject > attributes ) ;
82
+
83
+ // -(void)debug:(NSString * _Nonnull)body;
84
+ [ Export ( "debug:" ) ]
85
+ void Debug ( string body ) ;
86
+
87
+ // -(void)debug:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
88
+ [ Export ( "debug:attributes:" ) ]
89
+ void Debug ( string body , NSDictionary < NSString , NSObject > attributes ) ;
90
+
91
+ // -(void)info:(NSString * _Nonnull)body;
92
+ [ Export ( "info:" ) ]
93
+ void Info ( string body ) ;
94
+
95
+ // -(void)info:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
96
+ [ Export ( "info:attributes:" ) ]
97
+ void Info ( string body , NSDictionary < NSString , NSObject > attributes ) ;
98
+
99
+ // -(void)warn:(NSString * _Nonnull)body;
100
+ [ Export ( "warn:" ) ]
101
+ void Warn ( string body ) ;
102
+
103
+ // -(void)warn:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
104
+ [ Export ( "warn:attributes:" ) ]
105
+ void Warn ( string body , NSDictionary < NSString , NSObject > attributes ) ;
106
+
107
+ // -(void)error:(NSString * _Nonnull)body;
108
+ [ Export ( "error:" ) ]
109
+ void Error ( string body ) ;
110
+
111
+ // -(void)error:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
112
+ [ Export ( "error:attributes:" ) ]
113
+ void Error ( string body , NSDictionary < NSString , NSObject > attributes ) ;
114
+
115
+ // -(void)fatal:(NSString * _Nonnull)body;
116
+ [ Export ( "fatal:" ) ]
117
+ void Fatal ( string body ) ;
118
+
119
+ // -(void)fatal:(NSString * _Nonnull)body attributes:(NSDictionary<NSString *,id> * _Nonnull)attributes;
120
+ [ Export ( "fatal:attributes:" ) ]
121
+ void Fatal ( string body , NSDictionary < NSString , NSObject > attributes ) ;
122
+ }
123
+
69
124
// @interface SentryProfileOptions : NSObject
70
125
[ BaseType ( typeof ( NSObject ) , Name = "_TtC6Sentry20SentryProfileOptions" ) ]
71
126
[ DisableDefaultCtor ]
@@ -254,219 +309,220 @@ interface SentryRRWebEvent : SentrySerializable
254
309
[ Internal ]
255
310
interface SentrySDK
256
311
{
257
- // @property (nonatomic, class, readonly, strong ) id <SentrySpan> _Nullable span;
312
+ // @property (readonly, nonatomic, strong, class ) id<SentrySpan> _Nullable span;
258
313
[ Static ]
259
- [ NullAllowed , Export ( "span" ) ]
314
+ [ NullAllowed , Export ( "span" , ArgumentSemantic . Strong ) ]
260
315
SentrySpan Span { get ; }
261
316
262
- // @property (nonatomic, class, readonly ) BOOL isEnabled;
317
+ // @property (readonly, nonatomic, class ) BOOL isEnabled;
263
318
[ Static ]
264
- [ Export ( "isEnabled" ) ]
319
+ [ Export ( "isEnabled" ) ]
265
320
bool IsEnabled { get ; }
266
321
267
- // @property (nonatomic, class, readonly, strong ) SentryReplayApi * _Nonnull replay;
322
+ // @property (readonly, nonatomic, strong, class ) SentryReplayApi * _Nonnull replay;
268
323
[ Static ]
269
- [ Export ( "replay" ) ]
324
+ [ Export ( "replay" , ArgumentSemantic . Strong ) ]
270
325
SentryReplayApi Replay { get ; }
271
326
272
- // @property (nonatomic, class, readonly, strong) SentryLogger * _Nonnull logger;
327
+ // @property (readonly, nonatomic, strong, class) SentryLogger * _Nonnull logger;
328
+ [ Static ]
329
+ [ Export ( "logger" , ArgumentSemantic . Strong ) ]
330
+ SentryLogger Logger { get ; }
273
331
274
- // + (void)startWithOptions:(SentryOptions * _Nonnull)options;
332
+ // +(void)startWithOptions:(SentryOptions * _Nonnull)options;
275
333
[ Static ]
276
- [ Export ( "startWithOptions:" ) ]
277
- void StartWithOptions ( SentryOptions options ) ;
334
+ [ Export ( "startWithOptions:" ) ]
335
+ void StartWithOptions ( SentryOptions options ) ;
278
336
279
- // + (void)startWithConfigureOptions:(void (^ _Nonnull)(SentryOptions * _Nonnull))configureOptions;
337
+ // +(void)startWithConfigureOptions:(void (^ _Nonnull)(SentryOptions * _Nonnull))configureOptions;
280
338
[ Static ]
281
- [ Export ( "startWithConfigureOptions:" ) ]
282
- void StartWithConfigureOptions ( Action < SentryOptions > configureOptions ) ;
339
+ [ Export ( "startWithConfigureOptions:" ) ]
340
+ void StartWithConfigureOptions ( Action < SentryOptions > configureOptions ) ;
283
341
284
- // + (SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event;
342
+ // +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event;
285
343
[ Static ]
286
- [ Export ( "captureEvent:" ) ]
287
- SentryId CaptureEvent ( SentryEvent @event ) ;
344
+ [ Export ( "captureEvent:" ) ]
345
+ SentryId CaptureEvent ( SentryEvent @event ) ;
288
346
289
- // + (SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScope:(SentryScope * _Nonnull)scope;
347
+ // +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScope:(SentryScope * _Nonnull)scope;
290
348
[ Static ]
291
- [ Export ( "captureEvent:withScope:" ) ]
292
- SentryId CaptureEvent ( SentryEvent @event , SentryScope scope ) ;
349
+ [ Export ( "captureEvent:withScope:" ) ]
350
+ SentryId CaptureEvent ( SentryEvent @event , SentryScope scope ) ;
293
351
294
- // + (SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
352
+ // +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
295
353
[ Static ]
296
- [ Export ( "captureEvent:withScopeBlock:" ) ]
297
- SentryId CaptureEvent ( SentryEvent @event , Action < SentryScope > block ) ;
354
+ [ Export ( "captureEvent:withScopeBlock:" ) ]
355
+ SentryId CaptureEvent ( SentryEvent @event , Action < SentryScope > block ) ;
298
356
299
- // + (id <SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation;
357
+ // +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation;
300
358
[ Static ]
301
- [ Export ( "startTransactionWithName:operation:" ) ]
302
- SentrySpan StartTransactionWithName ( string name , string operation ) ;
359
+ [ Export ( "startTransactionWithName:operation:" ) ]
360
+ SentrySpan StartTransactionWithName ( string name , string operation ) ;
303
361
304
- // + (id <SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation bindToScope:(BOOL)bindToScope;
362
+ // +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation bindToScope:(BOOL)bindToScope;
305
363
[ Static ]
306
- [ Export ( "startTransactionWithName:operation:bindToScope:" ) ]
307
- SentrySpan StartTransactionWithName ( string name , string operation , bool bindToScope ) ;
364
+ [ Export ( "startTransactionWithName:operation:bindToScope:" ) ]
365
+ SentrySpan StartTransactionWithName ( string name , string operation , bool bindToScope ) ;
308
366
309
- // + (id <SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext;
367
+ // +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext;
310
368
[ Static ]
311
- [ Export ( "startTransactionWithContext:" ) ]
312
- SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext ) ;
369
+ [ Export ( "startTransactionWithContext:" ) ]
370
+ SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext ) ;
313
371
314
- // + (id <SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope;
372
+ // +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope;
315
373
[ Static ]
316
- [ Export ( "startTransactionWithContext:bindToScope:" ) ]
317
- SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext , bool bindToScope ) ;
374
+ [ Export ( "startTransactionWithContext:bindToScope:" ) ]
375
+ SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext , bool bindToScope ) ;
318
376
319
- // + (id <SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope customSamplingContext:(NSDictionary<NSString *, id> * _Nonnull)customSamplingContext;
377
+ // +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope customSamplingContext:(NSDictionary<NSString *,id> * _Nonnull)customSamplingContext;
320
378
[ Static ]
321
- [ Export ( "startTransactionWithContext:bindToScope:customSamplingContext:" ) ]
322
- SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext , bool bindToScope , NSDictionary < NSString , NSObject > customSamplingContext ) ;
379
+ [ Export ( "startTransactionWithContext:bindToScope:customSamplingContext:" ) ]
380
+ SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext , bool bindToScope , NSDictionary < NSString , NSObject > customSamplingContext ) ;
323
381
324
- // + (id <SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext customSamplingContext:(NSDictionary<NSString *, id> * _Nonnull)customSamplingContext;
382
+ // +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext customSamplingContext:(NSDictionary<NSString *,id> * _Nonnull)customSamplingContext;
325
383
[ Static ]
326
384
[ Export ( "startTransactionWithContext:customSamplingContext:" ) ]
327
385
SentrySpan StartTransactionWithContext ( SentryTransactionContext transactionContext , NSDictionary < NSString , NSObject > customSamplingContext ) ;
328
386
329
- // + (SentryId * _Nonnull)captureError:(NSError * _Nonnull)error;
387
+ // +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error;
330
388
[ Static ]
331
389
[ Export ( "captureError:" ) ]
332
390
SentryId CaptureError ( NSError error ) ;
333
391
334
- // + (SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScope:(SentryScope * _Nonnull)scope;
392
+ // +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScope:(SentryScope * _Nonnull)scope;
335
393
[ Static ]
336
394
[ Export ( "captureError:withScope:" ) ]
337
395
SentryId CaptureError ( NSError error , SentryScope scope ) ;
338
396
339
- // + (SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
397
+ // +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
340
398
[ Static ]
341
399
[ Export ( "captureError:withScopeBlock:" ) ]
342
400
SentryId CaptureError ( NSError error , Action < SentryScope > block ) ;
343
401
344
- // + (SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception;
402
+ // +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception;
345
403
[ Static ]
346
404
[ Export ( "captureException:" ) ]
347
405
SentryId CaptureException ( NSException exception ) ;
348
406
349
- // + (SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScope:(SentryScope * _Nonnull)scope;
407
+ // +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScope:(SentryScope * _Nonnull)scope;
350
408
[ Static ]
351
409
[ Export ( "captureException:withScope:" ) ]
352
410
SentryId CaptureException ( NSException exception , SentryScope scope ) ;
353
411
354
- // + (SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
412
+ // +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
355
413
[ Static ]
356
414
[ Export ( "captureException:withScopeBlock:" ) ]
357
415
SentryId CaptureException ( NSException exception , Action < SentryScope > block ) ;
358
416
359
- // + (SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message;
417
+ // +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message;
360
418
[ Static ]
361
419
[ Export ( "captureMessage:" ) ]
362
420
SentryId CaptureMessage ( string message ) ;
363
421
364
- // + (SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScope:(SentryScope * _Nonnull)scope;
422
+ // +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScope:(SentryScope * _Nonnull)scope;
365
423
[ Static ]
366
424
[ Export ( "captureMessage:withScope:" ) ]
367
425
SentryId CaptureMessage ( string message , SentryScope scope ) ;
368
426
369
- // + (SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
427
+ // +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block;
370
428
[ Static ]
371
429
[ Export ( "captureMessage:withScopeBlock:" ) ]
372
430
SentryId CaptureMessage ( string message , Action < SentryScope > block ) ;
373
431
374
- // + (void) captureUserFeedback:(SentryUserFeedback* _Nonnull) userFeedback SWIFT_DEPRECATED_MSG( "Use SentrySDK.back or use or configure our new managed UX with SentryOptions.configureUserFeedback.");
432
+ // +(void)captureUserFeedback:(SentryUserFeedback * _Nonnull)userFeedback __attribute__((deprecated( "Use SentrySDK.back or use or configure our new managed UX with SentryOptions.configureUserFeedback.")) );
375
433
[ Static ]
376
434
[ Export ( "captureUserFeedback:" ) ]
377
435
void CaptureUserFeedback ( SentryUserFeedback userFeedback ) ;
378
436
379
- // + (void)captureFeedback:(SentryFeedback * _Nonnull)feedback;
437
+ // +(void)captureFeedback:(SentryFeedback * _Nonnull)feedback;
380
438
[ Static ]
381
439
[ Export ( "captureFeedback:" ) ]
382
440
void CaptureFeedback ( SentryFeedback feedback ) ;
383
441
384
- // @property (nonatomic, class, readonly, strong ) SentryFeedbackAPI * _Nonnull feedback SWIFT_AVAILABILITY( ios,introduced=13.0);
442
+ // @property (readonly, nonatomic, strong, class ) SentryFeedbackAPI * _Nonnull feedback __attribute__((availability( ios, introduced=13.0)) );
385
443
[ Static ]
386
- [ Export ( "feedback" ) ]
444
+ [ Export ( "feedback" , ArgumentSemantic . Strong ) ]
387
445
SentryFeedbackAPI Feedback { get ; }
388
446
389
- // + (void)addBreadcrumb:(SentryBreadcrumb * _Nonnull)crumb;
447
+ // +(void)addBreadcrumb:(SentryBreadcrumb * _Nonnull)crumb;
390
448
[ Static ]
391
449
[ Export ( "addBreadcrumb:" ) ]
392
450
void AddBreadcrumb ( SentryBreadcrumb crumb ) ;
393
451
394
- // + (void)configureScope:(void (^ _Nonnull)(SentryScope * _Nonnull))callback;
452
+ // +(void)configureScope:(void (^ _Nonnull)(SentryScope * _Nonnull))callback;
395
453
[ Static ]
396
454
[ Export ( "configureScope:" ) ]
397
455
void ConfigureScope ( Action < SentryScope > callback ) ;
398
456
399
- // @property (nonatomic, class, readonly ) BOOL crashedLastRun;
457
+ // @property (readonly, nonatomic, class ) BOOL crashedLastRun;
400
458
[ Static ]
401
459
[ Export ( "crashedLastRun" ) ]
402
460
bool CrashedLastRun { get ; }
403
461
404
- // property (nonatomic, class, readonly ) BOOL detectedStartUpCrash;
462
+ // @ property (readonly, nonatomic, class ) BOOL detectedStartUpCrash;
405
463
[ Static ]
406
464
[ Export ( "detectedStartUpCrash" ) ]
407
465
bool DetectedStartUpCrash { get ; }
408
466
409
- // + (void)setUser:(SentryUser * _Nullable)user;
467
+ // +(void)setUser:(SentryUser * _Nullable)user;
410
468
[ Static ]
411
469
[ Export ( "setUser:" ) ]
412
470
void SetUser ( [ NullAllowed ] SentryUser user ) ;
413
471
414
- // + (void)startSession;
472
+ // +(void)startSession;
415
473
[ Static ]
416
474
[ Export ( "startSession" ) ]
417
475
void StartSession ( ) ;
418
476
419
- // + (void)endSession;
477
+ // +(void)endSession;
420
478
[ Static ]
421
479
[ Export ( "endSession" ) ]
422
480
void EndSession ( ) ;
423
481
424
- // + (void)crash;
482
+ // +(void)crash;
425
483
[ Static ]
426
484
[ Export ( "crash" ) ]
427
485
void Crash ( ) ;
428
486
429
- // + (void)reportFullyDisplayed;
487
+ // +(void)reportFullyDisplayed;
430
488
[ Static ]
431
489
[ Export ( "reportFullyDisplayed" ) ]
432
490
void ReportFullyDisplayed ( ) ;
433
491
434
- // + (void)pauseAppHangTracking;
492
+ // +(void)pauseAppHangTracking;
435
493
[ Static ]
436
494
[ Export ( "pauseAppHangTracking" ) ]
437
495
void PauseAppHangTracking ( ) ;
438
496
439
- // + (void)resumeAppHangTracking;
497
+ // +(void)resumeAppHangTracking;
440
498
[ Static ]
441
499
[ Export ( "resumeAppHangTracking" ) ]
442
500
void ResumeAppHangTracking ( ) ;
443
501
444
- // + (void)flush:(NSTimeInterval)timeout;
502
+ // +(void)flush:(NSTimeInterval)timeout;
445
503
[ Static ]
446
504
[ Export ( "flush:" ) ]
447
505
void Flush ( double timeout ) ;
448
506
449
- // + (void)close;
507
+ // +(void)close;
450
508
[ Static ]
451
509
[ Export ( "close" ) ]
452
510
void Close ( ) ;
453
511
454
- // + (void)startProfiler;
512
+ // +(void)startProfiler;
455
513
[ Static ]
456
514
[ Export ( "startProfiler" ) ]
457
515
void StartProfiler ( ) ;
458
516
459
- // + (void)stopProfiler;
517
+ // +(void)stopProfiler;
460
518
[ Static ]
461
519
[ Export ( "stopProfiler" ) ]
462
520
void StopProfiler ( ) ;
463
521
464
- // + (void)clearLogger;
465
-
466
- // - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
467
- [ Export ( "init" ) ]
468
- [ DesignatedInitializer ]
469
- IntPtr Constructor ( ) ;
522
+ // +(void)clearLogger;
523
+ [ Static ]
524
+ [ Export ( "clearLogger" ) ]
525
+ void ClearLogger ( ) ;
470
526
}
471
527
472
528
// @interface SentryUserFeedback : NSObject <SentrySerializable>
0 commit comments