-
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathApiDefinitions.cs
More file actions
2956 lines (2346 loc) · 118 KB
/
ApiDefinitions.cs
File metadata and controls
2956 lines (2346 loc) · 118 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// -----------------------------------------------------------------------------
// This file is auto-generated by Objective Sharpie and patched via the script
// at /scripts/patch-cocoa-bindings.cs. Do not edit this file directly.
// If changes are required, update the script instead.
// -----------------------------------------------------------------------------
#nullable enable
using System;
using CoreFoundation;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
using Sentry;
using UIKit;
namespace Sentry.CocoaSdk;
// typedef void (^SentryRequestFinished)(NSError * _Nullable);
[Internal]
delegate void SentryRequestFinished([NullAllowed] NSError error);
// typedef void (^SentryRequestOperationFinished)(NSHTTPURLResponse * _Nullable, NSError * _Nullable);
[Internal]
delegate void SentryRequestOperationFinished([NullAllowed] NSHttpUrlResponse response, [NullAllowed] NSError error);
// typedef SentryBreadcrumb * _Nullable (^SentryBeforeBreadcrumbCallback)(SentryBreadcrumb * _Nonnull);
[Internal]
[return: NullAllowed]
delegate SentryBreadcrumb SentryBeforeBreadcrumbCallback(SentryBreadcrumb breadcrumb);
// typedef SentryEvent * _Nullable (^SentryBeforeSendEventCallback)(SentryEvent * _Nonnull);
[Internal]
[return: NullAllowed]
delegate SentryEvent SentryBeforeSendEventCallback(SentryEvent @event);
// typedef id<SentrySpan> _Nullable (^SentryBeforeSendSpanCallback)(id<SentrySpan> _Nonnull);
[Internal]
delegate SentrySpan SentryBeforeSendSpanCallback(SentrySpan span);
// typedef BOOL (^SentryBeforeCaptureScreenshotCallback)(SentryEvent * _Nonnull);
[Internal]
delegate bool SentryBeforeCaptureScreenshotCallback(SentryEvent @event);
// typedef BOOL (^SentryBeforeCaptureViewHierarchyCallback)(SentryEvent * _Nonnull);
[Internal]
delegate bool SentryBeforeCaptureViewHierarchyCallback(SentryEvent @event);
// typedef void (^SentryOnCrashedLastRunCallback)(SentryEvent * _Nonnull);
[Internal]
delegate void SentryOnCrashedLastRunCallback(SentryEvent @event);
// typedef BOOL (^SentryShouldQueueEvent)(NSHTTPURLResponse * _Nullable, NSError * _Nullable);
[Internal]
delegate bool SentryShouldQueueEvent([NullAllowed] NSHttpUrlResponse response, [NullAllowed] NSError error);
// typedef NSNumber * _Nullable (^SentryTracesSamplerCallback)(SentrySamplingContext * _Nonnull);
[Internal]
[return: NullAllowed]
delegate NSNumber SentryTracesSamplerCallback(SentrySamplingContext samplingContext);
// @interface SentryAttachment : NSObject
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryAttachment
{
// -(instancetype _Nonnull)initWithData:(NSData * _Nonnull)data filename:(NSString * _Nonnull)filename;
[Export("initWithData:filename:")]
NativeHandle Constructor(NSData data, string filename);
// -(instancetype _Nonnull)initWithData:(NSData * _Nonnull)data filename:(NSString * _Nonnull)filename contentType:(NSString * _Nullable)contentType;
[Export("initWithData:filename:contentType:")]
NativeHandle Constructor(NSData data, string filename, [NullAllowed] string contentType);
// -(instancetype _Nonnull)initWithPath:(NSString * _Nonnull)path;
[Export("initWithPath:")]
NativeHandle Constructor(string path);
// -(instancetype _Nonnull)initWithPath:(NSString * _Nonnull)path filename:(NSString * _Nonnull)filename;
[Export("initWithPath:filename:")]
NativeHandle Constructor(string path, string filename);
// -(instancetype _Nonnull)initWithPath:(NSString * _Nonnull)path filename:(NSString * _Nonnull)filename contentType:(NSString * _Nullable)contentType;
[Export("initWithPath:filename:contentType:")]
NativeHandle Constructor(string path, string filename, [NullAllowed] string contentType);
// -(instancetype _Nonnull)initWithData:(NSData * _Nonnull)data filename:(NSString * _Nonnull)filename contentType:(NSString * _Nullable)contentType attachmentType:(SentryAttachmentType)attachmentType;
[Export("initWithData:filename:contentType:attachmentType:")]
NativeHandle Constructor(NSData data, string filename, [NullAllowed] string contentType, SentryAttachmentType attachmentType);
// -(instancetype _Nonnull)initWithPath:(NSString * _Nonnull)path filename:(NSString * _Nonnull)filename contentType:(NSString * _Nullable)contentType attachmentType:(SentryAttachmentType)attachmentType;
[Export("initWithPath:filename:contentType:attachmentType:")]
NativeHandle Constructor(string path, string filename, [NullAllowed] string contentType, SentryAttachmentType attachmentType);
// @property (readonly, nonatomic, strong) NSData * _Nullable data;
[NullAllowed, Export("data", ArgumentSemantic.Strong)]
NSData Data { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable path;
[NullAllowed, Export("path")]
string Path { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull filename;
[Export("filename")]
string Filename { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable contentType;
[NullAllowed, Export("contentType")]
string ContentType { get; }
// @property (readonly, nonatomic) SentryAttachmentType attachmentType;
[Export("attachmentType")]
SentryAttachmentType AttachmentType { get; }
}
// @interface SentryBaggage : NSObject
[BaseType(typeof(NSObject))]
[Internal]
interface SentryBaggage
{
// @property (readonly, nonatomic) SentryId * _Nonnull traceId;
[Export("traceId")]
SentryId TraceId { get; }
// @property (readonly, nonatomic) NSString * _Nonnull publicKey;
[Export("publicKey")]
string PublicKey { get; }
// @property (readonly, nonatomic) NSString * _Nullable releaseName;
[NullAllowed, Export("releaseName")]
string ReleaseName { get; }
// @property (readonly, nonatomic) NSString * _Nullable environment;
[NullAllowed, Export("environment")]
string Environment { get; }
// @property (readonly, nonatomic) NSString * _Nullable transaction;
[NullAllowed, Export("transaction")]
string Transaction { get; }
// @property (readonly, nonatomic) NSString * _Nullable userId;
[NullAllowed, Export("userId")]
string UserId { get; }
// @property (readonly, nonatomic) NSString * _Nullable sampleRand;
[NullAllowed, Export("sampleRand")]
string SampleRand { get; }
// @property (readonly, nonatomic) NSString * _Nullable sampleRate;
[NullAllowed, Export("sampleRate")]
string SampleRate { get; }
// @property (nonatomic, strong) NSString * _Nullable sampled;
[NullAllowed, Export("sampled", ArgumentSemantic.Strong)]
string Sampled { get; set; }
// @property (nonatomic, strong) NSString * _Nullable replayId;
[NullAllowed, Export("replayId", ArgumentSemantic.Strong)]
string ReplayId { get; set; }
// -(instancetype _Nonnull)initWithTraceId:(SentryId * _Nonnull)traceId publicKey:(NSString * _Nonnull)publicKey releaseName:(NSString * _Nullable)releaseName environment:(NSString * _Nullable)environment transaction:(NSString * _Nullable)transaction sampleRate:(NSString * _Nullable)sampleRate sampled:(NSString * _Nullable)sampled replayId:(NSString * _Nullable)replayId;
[Export("initWithTraceId:publicKey:releaseName:environment:transaction:sampleRate:sampled:replayId:")]
NativeHandle Constructor(SentryId traceId, string publicKey, [NullAllowed] string releaseName, [NullAllowed] string environment, [NullAllowed] string transaction, [NullAllowed] string sampleRate, [NullAllowed] string sampled, [NullAllowed] string replayId);
// -(instancetype _Nonnull)initWithTraceId:(SentryId * _Nonnull)traceId publicKey:(NSString * _Nonnull)publicKey releaseName:(NSString * _Nullable)releaseName environment:(NSString * _Nullable)environment transaction:(NSString * _Nullable)transaction sampleRate:(NSString * _Nullable)sampleRate sampleRand:(NSString * _Nullable)sampleRand sampled:(NSString * _Nullable)sampled replayId:(NSString * _Nullable)replayId;
[Export("initWithTraceId:publicKey:releaseName:environment:transaction:sampleRate:sampleRand:sampled:replayId:")]
NativeHandle Constructor(SentryId traceId, string publicKey, [NullAllowed] string releaseName, [NullAllowed] string environment, [NullAllowed] string transaction, [NullAllowed] string sampleRate, [NullAllowed] string sampleRand, [NullAllowed] string sampled, [NullAllowed] string replayId);
// -(NSString * _Nonnull)toHTTPHeaderWithOriginalBaggage:(NSDictionary * _Nullable)originalBaggage;
[Export("toHTTPHeaderWithOriginalBaggage:")]
string ToHTTPHeaderWithOriginalBaggage([NullAllowed] NSDictionary originalBaggage);
}
// @protocol SentrySerializable <NSObject>
[Protocol]
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
[Model]
interface SentrySerializable
{
// @required -(NSDictionary<NSString *,id> * _Nonnull)serialize;
[Abstract]
[Export("serialize")]
NSDictionary<NSString, NSObject> Serialize();
}
// @interface SentryBreadcrumb : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryBreadcrumb : SentrySerializable
{
// @property (nonatomic) SentryLevel level;
[Export("level", ArgumentSemantic.Assign)]
SentryLevel Level { get; set; }
// @property (copy, nonatomic) NSString * _Nonnull category;
[Export("category")]
string Category { get; set; }
// @property (nonatomic, strong) NSDate * _Nullable timestamp;
[NullAllowed, Export("timestamp", ArgumentSemantic.Strong)]
NSDate Timestamp { get; set; }
// @property (copy, nonatomic) NSString * _Nullable type;
[NullAllowed, Export("type")]
string Type { get; set; }
// @property (copy, nonatomic) NSString * _Nullable message;
[NullAllowed, Export("message")]
string Message { get; set; }
// @property (copy, nonatomic) NSString * _Nullable origin;
[NullAllowed, Export("origin")]
string Origin { get; set; }
// @property (copy, nonatomic) NSDictionary<NSString *,id> * _Nullable data;
[NullAllowed, Export("data", ArgumentSemantic.Copy)]
NSDictionary<NSString, NSObject> Data { get; set; }
// -(instancetype _Nonnull)initWithLevel:(SentryLevel)level category:(NSString * _Nonnull)category;
[Export("initWithLevel:category:")]
NativeHandle Constructor(SentryLevel level, string category);
// -(NSDictionary<NSString *,id> * _Nonnull)serialize;
[Export("serialize")]
NSDictionary<NSString, NSObject> Serialize();
// -(BOOL)isEqualToBreadcrumb:(SentryBreadcrumb * _Nonnull)breadcrumb;
[Export("isEqualToBreadcrumb:")]
bool IsEqualToBreadcrumb(SentryBreadcrumb breadcrumb);
// -(NSUInteger)hash;
[Export("hash")]
nuint Hash { get; }
}
// @interface SentryDebugMeta : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryDebugMeta : SentrySerializable
{
// @property (copy, nonatomic) NSString * _Nullable debugID;
[NullAllowed, Export("debugID")]
string DebugID { get; set; }
// @property (copy, nonatomic) NSString * _Nullable type;
[NullAllowed, Export("type")]
string Type { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable imageSize;
[NullAllowed, Export("imageSize", ArgumentSemantic.Copy)]
NSNumber ImageSize { get; set; }
// @property (copy, nonatomic) NSString * _Nullable imageAddress;
[NullAllowed, Export("imageAddress")]
string ImageAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable imageVmAddress;
[NullAllowed, Export("imageVmAddress")]
string ImageVmAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable codeFile;
[NullAllowed, Export("codeFile")]
string CodeFile { get; set; }
}
// @interface SentryEvent : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryEvent : SentrySerializable
{
// @property (nonatomic, strong) SentryId * _Nonnull eventId;
[Export("eventId", ArgumentSemantic.Strong)]
SentryId EventId { get; set; }
// @property (nonatomic, strong) SentryMessage * _Nullable message;
[NullAllowed, Export("message", ArgumentSemantic.Strong)]
SentryMessage Message { get; set; }
// @property (copy, nonatomic) NSError * _Nullable error;
[NullAllowed, Export("error", ArgumentSemantic.Copy)]
NSError Error { get; set; }
// @property (nonatomic, strong) NSDate * _Nullable timestamp;
[NullAllowed, Export("timestamp", ArgumentSemantic.Strong)]
NSDate Timestamp { get; set; }
// @property (nonatomic, strong) NSDate * _Nullable startTimestamp;
[NullAllowed, Export("startTimestamp", ArgumentSemantic.Strong)]
NSDate StartTimestamp { get; set; }
// @property (nonatomic) SentryLevel level;
[Export("level", ArgumentSemantic.Assign)]
SentryLevel Level { get; set; }
// @property (copy, nonatomic) NSString * _Nonnull platform;
[Export("platform")]
string Platform { get; set; }
// @property (copy, nonatomic) NSString * _Nullable logger;
[NullAllowed, Export("logger")]
string Logger { get; set; }
// @property (copy, nonatomic) NSString * _Nullable serverName;
[NullAllowed, Export("serverName")]
string ServerName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable releaseName;
[NullAllowed, Export("releaseName")]
string ReleaseName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable dist;
[NullAllowed, Export("dist")]
string Dist { get; set; }
// @property (copy, nonatomic) NSString * _Nullable environment;
[NullAllowed, Export("environment")]
string Environment { get; set; }
// @property (copy, nonatomic) NSString * _Nullable transaction;
[NullAllowed, Export("transaction")]
string Transaction { get; set; }
// @property (copy, nonatomic) NSString * _Nullable type;
[NullAllowed, Export("type")]
string Type { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,NSString *> * _Nullable tags;
[NullAllowed, Export("tags", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSString> Tags { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,id> * _Nullable extra;
[NullAllowed, Export("extra", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSObject> Extra { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,id> * _Nullable sdk;
[NullAllowed, Export("sdk", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSObject> Sdk { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,NSString *> * _Nullable modules;
[NullAllowed, Export("modules", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSString> Modules { get; set; }
// @property (nonatomic, strong) NSArray<NSString *> * _Nullable fingerprint;
[NullAllowed, Export("fingerprint", ArgumentSemantic.Strong)]
string[] Fingerprint { get; set; }
// @property (nonatomic, strong) SentryUser * _Nullable user;
[NullAllowed, Export("user", ArgumentSemantic.Strong)]
SentryUser User { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,NSDictionary<NSString *,id> *> * _Nullable context;
[NullAllowed, Export("context", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSDictionary<NSString, NSObject>> Context { get; set; }
// @property (nonatomic, strong) NSArray<SentryThread *> * _Nullable threads;
[NullAllowed, Export("threads", ArgumentSemantic.Strong)]
SentryThread[] Threads { get; set; }
// @property (nonatomic, strong) NSArray<SentryException *> * _Nullable exceptions;
[NullAllowed, Export("exceptions", ArgumentSemantic.Strong)]
SentryException[] Exceptions { get; set; }
// @property (nonatomic, strong) SentryStacktrace * _Nullable stacktrace;
[NullAllowed, Export("stacktrace", ArgumentSemantic.Strong)]
SentryStacktrace Stacktrace { get; set; }
// @property (nonatomic, strong) NSArray<SentryDebugMeta *> * _Nullable debugMeta;
[NullAllowed, Export("debugMeta", ArgumentSemantic.Strong)]
SentryDebugMeta[] DebugMeta { get; set; }
// @property (nonatomic, strong) NSArray<SentryBreadcrumb *> * _Nullable breadcrumbs;
[NullAllowed, Export("breadcrumbs", ArgumentSemantic.Strong)]
SentryBreadcrumb[] Breadcrumbs { get; set; }
// @property (nonatomic, strong) SentryRequest * _Nullable request;
[NullAllowed, Export("request", ArgumentSemantic.Strong)]
SentryRequest Request { get; set; }
// -(instancetype _Nonnull)initWithLevel:(enum SentryLevel)level __attribute__((objc_designated_initializer));
[Export("initWithLevel:")]
[DesignatedInitializer]
NativeHandle Constructor(SentryLevel level);
// -(instancetype _Nonnull)initWithError:(NSError * _Nonnull)error;
[Export("initWithError:")]
NativeHandle Constructor(NSError error);
}
// @interface SentryException : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryException : SentrySerializable
{
// @property (copy, nonatomic) NSString * _Nullable value;
[NullAllowed, Export("value")]
string Value { get; set; }
// @property (copy, nonatomic) NSString * _Nullable type;
[NullAllowed, Export("type")]
string Type { get; set; }
// @property (nonatomic, strong) SentryMechanism * _Nullable mechanism;
[NullAllowed, Export("mechanism", ArgumentSemantic.Strong)]
SentryMechanism Mechanism { get; set; }
// @property (copy, nonatomic) NSString * _Nullable module;
[NullAllowed, Export("module")]
string Module { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable threadId;
[NullAllowed, Export("threadId", ArgumentSemantic.Copy)]
NSNumber ThreadId { get; set; }
// @property (nonatomic, strong) SentryStacktrace * _Nullable stacktrace;
[NullAllowed, Export("stacktrace", ArgumentSemantic.Strong)]
SentryStacktrace Stacktrace { get; set; }
// -(instancetype _Nonnull)initWithValue:(NSString * _Nullable)value type:(NSString * _Nullable)type;
[Export("initWithValue:type:")]
NativeHandle Constructor([NullAllowed] string value, [NullAllowed] string type);
}
// @interface SentryFrame : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryFrame : SentrySerializable
{
// @property (copy, nonatomic) NSString * _Nullable symbolAddress;
[NullAllowed, Export("symbolAddress")]
string SymbolAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable fileName;
[NullAllowed, Export("fileName")]
string FileName { get; set; }
// @property (copy, nonatomic) NSString * _Nullable function;
[NullAllowed, Export("function")]
string Function { get; set; }
// @property (copy, nonatomic) NSString * _Nullable module;
[NullAllowed, Export("module")]
string Module { get; set; }
// @property (copy, nonatomic) NSString * _Nullable package;
[NullAllowed, Export("package")]
string Package { get; set; }
// @property (copy, nonatomic) NSString * _Nullable imageAddress;
[NullAllowed, Export("imageAddress")]
string ImageAddress { get; set; }
// @property (copy, nonatomic) NSString * _Nullable platform;
[NullAllowed, Export("platform")]
string Platform { get; set; }
// @property (copy, nonatomic) NSString * _Nullable instructionAddress;
[NullAllowed, Export("instructionAddress")]
string InstructionAddress { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable lineNumber;
[NullAllowed, Export("lineNumber", ArgumentSemantic.Copy)]
NSNumber LineNumber { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable columnNumber;
[NullAllowed, Export("columnNumber", ArgumentSemantic.Copy)]
NSNumber ColumnNumber { get; set; }
// @property (copy, nonatomic) NSString * _Nullable contextLine;
[NullAllowed, Export("contextLine")]
string ContextLine { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable parentIndex;
[NullAllowed, Export("parentIndex", ArgumentSemantic.Copy)]
NSNumber ParentIndex { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable sampleCount;
[NullAllowed, Export("sampleCount", ArgumentSemantic.Copy)]
NSNumber SampleCount { get; set; }
// @property (copy, nonatomic) NSArray<NSString *> * _Nullable preContext;
[NullAllowed, Export("preContext", ArgumentSemantic.Copy)]
string[] PreContext { get; set; }
// @property (copy, nonatomic) NSArray<NSString *> * _Nullable postContext;
[NullAllowed, Export("postContext", ArgumentSemantic.Copy)]
string[] PostContext { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable inApp;
[NullAllowed, Export("inApp", ArgumentSemantic.Copy)]
NSNumber InApp { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable stackStart;
[NullAllowed, Export("stackStart", ArgumentSemantic.Copy)]
NSNumber StackStart { get; set; }
// @property (copy, nonatomic) NSDictionary<NSString *,id> * _Nullable vars;
[NullAllowed, Export("vars", ArgumentSemantic.Copy)]
NSDictionary<NSString, NSObject> Vars { get; set; }
}
// @interface SentryGeo : NSObject <SentrySerializable, NSCopying>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryGeo : SentrySerializable
{
// @property (copy, atomic) NSString * _Nullable city;
[NullAllowed, Export("city")]
string City { get; set; }
// @property (copy, atomic) NSString * _Nullable countryCode;
[NullAllowed, Export("countryCode")]
string CountryCode { get; set; }
// @property (copy, atomic) NSString * _Nullable region;
[NullAllowed, Export("region")]
string Region { get; set; }
// -(BOOL)isEqualToGeo:(SentryGeo * _Nonnull)geo;
[Export("isEqualToGeo:")]
bool IsEqualToGeo(SentryGeo geo);
// -(NSUInteger)hash;
[Export("hash")]
nuint Hash { get; }
}
// @interface SentryHttpStatusCodeRange : NSObject
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryHttpStatusCodeRange
{
// @property (readonly, nonatomic) NSInteger min;
[Export("min")]
nint Min { get; }
// @property (readonly, nonatomic) NSInteger max;
[Export("max")]
nint Max { get; }
// -(instancetype _Nonnull)initWithMin:(NSInteger)min max:(NSInteger)max;
[Export("initWithMin:max:")]
NativeHandle Constructor(nint min, nint max);
// -(instancetype _Nonnull)initWithStatusCode:(NSInteger)statusCode;
[Export("initWithStatusCode:")]
NativeHandle Constructor(nint statusCode);
}
// @interface SentryId : NSObject
[BaseType(typeof(NSObject))]
[Internal]
interface SentryId
{
// @property (readonly, nonatomic, strong, class) SentryId * _Nonnull empty;
[Static]
[Export("empty", ArgumentSemantic.Strong)]
SentryId Empty { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull sentryIdString;
[Export("sentryIdString")]
string SentryIdString { get; }
// -(instancetype _Nonnull)initWithUuid:(NSUUID * _Nonnull)uuid __attribute__((objc_designated_initializer));
[Export("initWithUuid:")]
[DesignatedInitializer]
NativeHandle Constructor(NSUuid uuid);
// -(instancetype _Nonnull)initWithUUIDString:(NSString * _Nonnull)uuidString __attribute__((objc_designated_initializer));
[Export("initWithUUIDString:")]
[DesignatedInitializer]
NativeHandle Constructor(string uuidString);
}
// @interface SentryMeasurementUnit : NSObject <NSCopying>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryMeasurementUnit
{
// -(instancetype _Nonnull)initWithUnit:(NSString * _Nonnull)unit;
[Export("initWithUnit:")]
NativeHandle Constructor(string unit);
// @property (readonly, copy) NSString * _Nonnull unit;
[Export("unit")]
string Unit { get; }
// @property (readonly, copy, class) SentryMeasurementUnit * _Nonnull none;
[Static]
[Export("none", ArgumentSemantic.Copy)]
SentryMeasurementUnit None { get; }
}
// @interface SentryMeasurementUnitDuration : SentryMeasurementUnit
[BaseType(typeof(SentryMeasurementUnit))]
[DisableDefaultCtor]
[Internal]
interface SentryMeasurementUnitDuration
{
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull nanosecond;
[Static]
[Export("nanosecond", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Nanosecond { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull microsecond;
[Static]
[Export("microsecond", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Microsecond { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull millisecond;
[Static]
[Export("millisecond", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Millisecond { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull second;
[Static]
[Export("second", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Second { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull minute;
[Static]
[Export("minute", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Minute { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull hour;
[Static]
[Export("hour", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Hour { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull day;
[Static]
[Export("day", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Day { get; }
// @property (readonly, copy, class) SentryMeasurementUnitDuration * _Nonnull week;
[Static]
[Export("week", ArgumentSemantic.Copy)]
SentryMeasurementUnitDuration Week { get; }
}
// @interface SentryMeasurementUnitInformation : SentryMeasurementUnit
[BaseType(typeof(SentryMeasurementUnit))]
[DisableDefaultCtor]
[Internal]
interface SentryMeasurementUnitInformation
{
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull bit;
[Static]
[Export("bit", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Bit { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull byte;
[Static]
[Export("byte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Byte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull kilobyte;
[Static]
[Export("kilobyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Kilobyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull kibibyte;
[Static]
[Export("kibibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Kibibyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull megabyte;
[Static]
[Export("megabyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Megabyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull mebibyte;
[Static]
[Export("mebibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Mebibyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull gigabyte;
[Static]
[Export("gigabyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Gigabyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull gibibyte;
[Static]
[Export("gibibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Gibibyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull terabyte;
[Static]
[Export("terabyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Terabyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull tebibyte;
[Static]
[Export("tebibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Tebibyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull petabyte;
[Static]
[Export("petabyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Petabyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull pebibyte;
[Static]
[Export("pebibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Pebibyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull exabyte;
[Static]
[Export("exabyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Exabyte { get; }
// @property (readonly, copy, class) SentryMeasurementUnitInformation * _Nonnull exbibyte;
[Static]
[Export("exbibyte", ArgumentSemantic.Copy)]
SentryMeasurementUnitInformation Exbibyte { get; }
}
// @interface SentryMeasurementUnitFraction : SentryMeasurementUnit
[BaseType(typeof(SentryMeasurementUnit))]
[DisableDefaultCtor]
[Internal]
interface SentryMeasurementUnitFraction
{
// @property (readonly, copy, class) SentryMeasurementUnitFraction * _Nonnull ratio;
[Static]
[Export("ratio", ArgumentSemantic.Copy)]
SentryMeasurementUnitFraction Ratio { get; }
// @property (readonly, copy, class) SentryMeasurementUnitFraction * _Nonnull percent;
[Static]
[Export("percent", ArgumentSemantic.Copy)]
SentryMeasurementUnitFraction Percent { get; }
}
// @interface SentryMechanism : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryMechanism : SentrySerializable
{
// @property (copy, nonatomic) NSString * _Nonnull type;
[Export("type")]
string Type { get; set; }
// @property (copy, nonatomic) NSString * _Nullable desc;
[NullAllowed, Export("desc")]
string Desc { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,id> * _Nullable data;
[NullAllowed, Export("data", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSObject> Data { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable handled;
[NullAllowed, Export("handled", ArgumentSemantic.Copy)]
NSNumber Handled { get; set; }
// @property (copy, nonatomic) NSNumber * _Nullable synthetic;
[NullAllowed, Export("synthetic", ArgumentSemantic.Copy)]
NSNumber Synthetic { get; set; }
// @property (copy, nonatomic) NSString * _Nullable helpLink;
[NullAllowed, Export("helpLink")]
string HelpLink { get; set; }
// @property (nonatomic, strong) SentryMechanismContext * _Nullable meta;
[NullAllowed, Export("meta", ArgumentSemantic.Strong)]
SentryMechanismContext Meta { get; set; }
// -(instancetype _Nonnull)initWithType:(NSString * _Nonnull)type;
[Export("initWithType:")]
NativeHandle Constructor(string type);
}
// @interface SentryMechanismContext : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryMechanismContext : SentrySerializable
{
// @property (nonatomic, strong) NSDictionary<NSString *,id> * _Nullable signal;
[NullAllowed, Export("signal", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSObject> Signal { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,id> * _Nullable machException;
[NullAllowed, Export("machException", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSObject> MachException { get; set; }
// @property (nonatomic, strong) SentryNSError * _Nullable error;
[NullAllowed, Export("error", ArgumentSemantic.Strong)]
SentryNSError Error { get; set; }
}
// @interface SentryMessage : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryMessage : SentrySerializable
{
// -(instancetype _Nonnull)initWithFormatted:(NSString * _Nonnull)formatted;
[Export("initWithFormatted:")]
NativeHandle Constructor(string formatted);
// @property (readonly, copy, nonatomic) NSString * _Nonnull formatted;
[Export("formatted")]
string Formatted { get; }
// @property (copy, nonatomic) NSString * _Nullable message;
[NullAllowed, Export("message")]
string Message { get; set; }
// @property (nonatomic, strong) NSArray<NSString *> * _Nullable params;
[NullAllowed, Export("params", ArgumentSemantic.Strong)]
string[] Params { get; set; }
}
// @interface SentryNSError : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentryNSError : SentrySerializable
{
// @property (copy, nonatomic) NSString * _Nonnull domain;
[Export("domain")]
string Domain { get; set; }
// @property (assign, nonatomic) NSInteger code;
[Export("code")]
nint Code { get; set; }
// -(instancetype _Nonnull)initWithDomain:(NSString * _Nonnull)domain code:(NSInteger)code;
[Export("initWithDomain:code:")]
NativeHandle Constructor(string domain, nint code);
}
// @interface SentryReplayApi : NSObject
[BaseType(typeof(NSObject))]
[Internal]
interface SentryReplayApi
{
// -(void)maskView:(UIView * _Nonnull)view __attribute__((swift_name("maskView(_:)")));
[Export("maskView:")]
void MaskView(UIView view);
// -(void)unmaskView:(UIView * _Nonnull)view __attribute__((swift_name("unmaskView(_:)")));
[Export("unmaskView:")]
void UnmaskView(UIView view);
// -(void)pause;
[Export("pause")]
void Pause();
// -(void)resume;
[Export("resume")]
void Resume();
// -(void)start;
[Export("start")]
void Start();
// -(void)stop;
[Export("stop")]
void Stop();
// -(void)showMaskPreview;
[Export("showMaskPreview")]
void ShowMaskPreview();
// -(void)showMaskPreview:(CGFloat)opacity;
[Export("showMaskPreview:")]
void ShowMaskPreview(nfloat opacity);
// -(void)hideMaskPreview;
[Export("hideMaskPreview")]
void HideMaskPreview();
}
// @interface SentryRequest : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[Internal]
interface SentryRequest : SentrySerializable
{
// @property (copy, nonatomic) NSNumber * _Nullable bodySize;
[NullAllowed, Export("bodySize", ArgumentSemantic.Copy)]
NSNumber BodySize { get; set; }
// @property (copy, nonatomic) NSString * _Nullable cookies;
[NullAllowed, Export("cookies")]
string Cookies { get; set; }
// @property (nonatomic, strong) NSDictionary<NSString *,NSString *> * _Nullable headers;
[NullAllowed, Export("headers", ArgumentSemantic.Strong)]
NSDictionary<NSString, NSString> Headers { get; set; }
// @property (copy, nonatomic) NSString * _Nullable fragment;
[NullAllowed, Export("fragment")]
string Fragment { get; set; }
// @property (copy, nonatomic) NSString * _Nullable method;
[NullAllowed, Export("method")]
string Method { get; set; }
// @property (copy, nonatomic) NSString * _Nullable queryString;
[NullAllowed, Export("queryString")]
string QueryString { get; set; }
// @property (copy, nonatomic) NSString * _Nullable url;
[NullAllowed, Export("url")]
string Url { get; set; }
}
// @interface SentrySamplingContext : NSObject
[BaseType(typeof(NSObject))]
[Internal]
interface SentrySamplingContext
{
// @property (readonly, nonatomic) SentryTransactionContext * _Nonnull transactionContext;
[Export("transactionContext")]
SentryTransactionContext TransactionContext { get; }
// @property (readonly, nonatomic) NSDictionary<NSString *,id> * _Nullable customSamplingContext;
[NullAllowed, Export("customSamplingContext")]
NSDictionary<NSString, NSObject> CustomSamplingContext { get; }
// -(instancetype _Nonnull)initWithTransactionContext:(SentryTransactionContext * _Nonnull)transactionContext;
[Export("initWithTransactionContext:")]
NativeHandle Constructor(SentryTransactionContext transactionContext);
// -(instancetype _Nonnull)initWithTransactionContext:(SentryTransactionContext * _Nonnull)transactionContext customSamplingContext:(NSDictionary<NSString *,id> * _Nonnull)customSamplingContext;
[Export("initWithTransactionContext:customSamplingContext:")]
NativeHandle Constructor(SentryTransactionContext transactionContext, NSDictionary<NSString, NSObject> customSamplingContext);
}
// @interface SentrySpanContext : NSObject <SentrySerializable>
[BaseType(typeof(NSObject))]
[DisableDefaultCtor]
[Internal]
interface SentrySpanContext : SentrySerializable
{
// @property (readonly, nonatomic) SentryId * _Nonnull traceId;
[Export("traceId")]
SentryId TraceId { get; }
// @property (readonly, nonatomic) SentrySpanId * _Nonnull spanId;
[Export("spanId")]
SentrySpanId SpanId { get; }
// @property (readonly, nonatomic) SentrySpanId * _Nullable parentSpanId;
[NullAllowed, Export("parentSpanId")]
SentrySpanId ParentSpanId { get; }
// @property (readonly, nonatomic) SentrySampleDecision sampled;
[Export("sampled")]
SentrySampleDecision Sampled { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull operation;
[Export("operation")]
string Operation { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable spanDescription;
[NullAllowed, Export("spanDescription")]
string SpanDescription { get; }
// @property (copy, nonatomic) NSString * _Nonnull origin;
[Export("origin")]
string Origin { get; set; }
// -(instancetype _Nonnull)initWithOperation:(NSString * _Nonnull)operation;
[Export("initWithOperation:")]
NativeHandle Constructor(string operation);
// -(instancetype _Nonnull)initWithOperation:(NSString * _Nonnull)operation sampled:(SentrySampleDecision)sampled;
[Export("initWithOperation:sampled:")]
NativeHandle Constructor(string operation, SentrySampleDecision sampled);
// -(instancetype _Nonnull)initWithTraceId:(SentryId * _Nonnull)traceId spanId:(SentrySpanId * _Nonnull)spanId parentId:(SentrySpanId * _Nullable)parentId operation:(NSString * _Nonnull)operation sampled:(SentrySampleDecision)sampled;
[Export("initWithTraceId:spanId:parentId:operation:sampled:")]
NativeHandle Constructor(SentryId traceId, SentrySpanId spanId, [NullAllowed] SentrySpanId parentId, string operation, SentrySampleDecision sampled);
// -(instancetype _Nonnull)initWithTraceId:(SentryId * _Nonnull)traceId spanId:(SentrySpanId * _Nonnull)spanId parentId:(SentrySpanId * _Nullable)parentId operation:(NSString * _Nonnull)operation spanDescription:(NSString * _Nullable)description sampled:(SentrySampleDecision)sampled;
[Export("initWithTraceId:spanId:parentId:operation:spanDescription:sampled:")]
NativeHandle Constructor(SentryId traceId, SentrySpanId spanId, [NullAllowed] SentrySpanId parentId, string operation, [NullAllowed] string description, SentrySampleDecision sampled);
}
// @protocol SentrySpan <SentrySerializable>
[Protocol]
[Internal]
[Model]
[BaseType (typeof(NSObject))]
interface SentrySpan : SentrySerializable
{
// @required @property (nonatomic, strong) SentryId * _Nonnull traceId;
[Abstract]
[Export("traceId", ArgumentSemantic.Strong)]
SentryId TraceId { get; set; }
// @required @property (nonatomic, strong) SentrySpanId * _Nonnull spanId;