This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
ApiDefinition.cs
774 lines (595 loc) · 28.7 KB
/
ApiDefinition.cs
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
using System;
using Foundation;
using ObjCRuntime;
using UIKit;
using QuickLook;
namespace HockeyApp.iOS
{
// typedef NSString * (^BITLogMessageProvider)();
public delegate NSString BITLogMessageProvider ();
// typedef void (^BITLogHandler)(BITLogMessageProvider, BITLogLevel, const char *, const char *, uint);
public unsafe delegate void BITLogHandler (BITLogMessageProvider messageProvider, BITLogLevel logLevel, IntPtr file, IntPtr function, uint line);
[Static]
partial interface Constants
{
// extern NSString *const kBITCrashErrorDomain;
[Field ("kBITCrashErrorDomain", "__Internal")]
NSString CrashErrorDomain { get; }
// extern NSString *const kBITUpdateErrorDomain;
[Field ("kBITUpdateErrorDomain", "__Internal")]
NSString UpdateErrorDomain { get; }
// extern NSString *const kBITFeedbackErrorDomain;
[Field ("kBITFeedbackErrorDomain", "__Internal")]
NSString FeedbackErrorDomain { get; }
// extern NSString *const kBITAuthenticatorErrorDomain;
[Field ("kBITAuthenticatorErrorDomain", "__Internal")]
NSString AuthenticatorErrorDomain { get; }
// extern NSString *const kBITHockeyErrorDomain;
[Field ("kBITHockeyErrorDomain", "__Internal")]
NSString HockeyErrorDomain { get; }
}
[BaseType (typeof (NSObject))]
public partial interface BITHockeyBaseManager
{
[Export("serverURL")]
string ServerUrl { get;set; }
// @property (assign, nonatomic) UIBarStyle barStyle;
[Export ("barStyle", ArgumentSemantic.Assign)]
UIBarStyle BarStyle { get; set; }
// @property (nonatomic, strong) UIColor * navigationBarTintColor;
[Export ("navigationBarTintColor", ArgumentSemantic.Strong)]
UIColor NavigationBarTintColor { get; set; }
// @property (assign, nonatomic) UIModalPresentationStyle modalPresentationStyle;
[Export ("modalPresentationStyle", ArgumentSemantic.Assign)]
UIModalPresentationStyle ModalPresentationStyle { get; set; }
}
[BaseType (typeof(NSObject))]
[DisableDefaultCtor]
public partial interface BITHockeyManager
{
[Static]
[Export("sharedHockeyManager")]
BITHockeyManager SharedHockeyManager { get;set; }
[Wrap ("WeakDelegate")][NullAllowed]
BITHockeyManagerDelegate Delegate { get; set; }
[Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
NSObject WeakDelegate { get; set; }
[Export("configureWithIdentifier:")]
void Configure(string appIdentifier);
[Export("configureWithIdentifier:delegate:")]
void Configure(string appIdentifier, [NullAllowed] NSObject managerDelegate);
[Export("configureWithBetaIdentifier:liveIdentifier:delegate:")]
void ConfigureWithIdentifier(string betaIdentifier, string liveIdentifier, [NullAllowed] NSObject managerDelegate);
[Internal]
[Export("startManager")]
void DoStartManager();
[Export ("serverURL", ArgumentSemantic.Retain)]
string ServerURL { get; set; }
[Export ("crashManager", ArgumentSemantic.Retain)]
BITCrashManager CrashManager { get; }
[Export ("disableCrashManager")]
bool DisableCrashManager { [Bind ("isCrashManagerDisabled")] get; set; }
#if !CRASHONLY
[Export ("updateManager", ArgumentSemantic.Retain)]
BITUpdateManager UpdateManager { get; }
#endif
[Export ("disableUpdateManager")]
bool DisableUpdateManager { [Bind ("isUpdateManagerDisabled")] get; set; }
#if !CRASHONLY
[Export ("storeUpdateManager", ArgumentSemantic.Retain)]
BITStoreUpdateManager StoreUpdateManager { get; }
#endif
[Export ("enableStoreUpdateManager")]
bool EnableStoreUpdateManager { [Bind ("isStoreUpdateManagerEnabled")] get; set; }
#if !CRASHONLY
[Export ("feedbackManager", ArgumentSemantic.Retain)]
BITFeedbackManager FeedbackManager { get; }
#endif
[Export ("disableFeedbackManager")]
bool DisableFeedbackManager { [Bind ("isFeedbackManagerDisabled")] get; set; }
#if !CRASHONLY
[Export ("authenticator", ArgumentSemantic.Retain)]
BITAuthenticator Authenticator { get; }
#endif
#if !CRASHONLY
// @property (nonatomic, strong, readonly) BITMetricsManager* metricsManager;
[Export ("metricsManager", ArgumentSemantic.Strong)]
BITMetricsManager MetricsManager { get; }
// @property (nonatomic, getter = isMetricsManagerDisabled) BOOL disableMetricsManager;
/// <summary>
/// Gets or sets the disable metrics manager. Must be set before calling StartManager
/// </summary>
/// <value>If the MetricsManager is disabled.</value>
[Export ("disableMetricsManager")]
bool DisableMetricsManager {
[Bind ("isMetricsManagerDisabled")] get;
set;
}
#endif
// Added in 3.8.4
//@property (nonatomic, readonly) BITEnvironment appEnvironment;
[Export ("appEnvironment")]
BITEnvironment AppEnvironment { get; }
[Export ("installString")]
string InstallString { get; }
[Export ("disableInstallTracking")]
bool DisableInstallTracking { [Bind ("isInstallTrackingDisabled")] get; set; }
// @property (assign, nonatomic) BITLogLevel logLevel;
[Export ("logLevel", ArgumentSemantic.Retain)]
BITLogLevel LogLevel { get; set; }
// @property (getter = isDebugLogEnabled, assign, nonatomic) BOOL debugLogEnabled __attribute__((deprecated("Use logLevel instead!")));
[Export ("debugLogEnabled")]
bool DebugLogEnabled { [Bind ("isDebugLogEnabled")] get; set; }
// -(void)setLogHandler:(BITLogHandler _Nonnull)logHandler;
[Export ("setLogHandler:")]
void SetLogHandler (BITLogHandler logHandler);
[Export("userID", ArgumentSemantic.Retain)][NullAllowed]
string UserId { get;set; }
[Export("userName", ArgumentSemantic.Retain)][NullAllowed]
string UserName { get;set; }
[Export("userEmail", ArgumentSemantic.Retain)][NullAllowed]
string UserEmail { get;set; }
[Export("testIdentifier")]
void TestIdentifier();
[Export("version")]
string Version();
[Export("build")]
string Build();
}
#if !CRASHONLY
public delegate void BITAuthenticatorIdentifyCallback (bool identified, NSError error);
public delegate void BITAuthenticatorValidateCallback (bool validated, NSError error);
#endif
#if !CRASHONLY
// [BaseType(typeof(BITHockeyBaseManager),
// Delegates=new string [] {"WeakDelegate"},
// Events=new Type [] { typeof (BITAuthenticatorDelegate) })]
[BaseType (typeof (BITHockeyBaseManager))]
public partial interface BITAuthenticator
{
// Removed in 3.6.2
// [Wrap ("WeakDelegate")]
// BITAuthenticatorDelegate Delegate { get; set; }
//
// [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
// NSObject WeakDelegate { get; set; }
[Export("identificationType")]
BITAuthenticatorIdentificationType IdentificationType { get;set; }
[Export("restrictApplicationUsage")]
bool RestrictApplicationUsage { get;set; }
[Export("restrictionEnforcementFrequency")]
BITAuthenticatorAppRestrictionEnforcementFrequency RestrictionEnforcementFrequency { get; set; }
[Export("authenticationSecret")]
string AuthenticationSecret { get;set; }
[Export("webpageURL")]
NSUrl WebpageUrl { get;set; }
[Export("deviceAuthenticationURL")]
NSUrl DeviceAuthenticationUrl { get; }
[Export("urlScheme")]
string UrlScheme { get;set; }
[Export("handleOpenURL:sourceApplication:annotation:")]
bool HandleOpenUrl(NSUrl url, string sourceApplication, IntPtr annotation);
[Export("authenticateInstallation")]
void AuthenticateInstallation();
[Export("identifyWithCompletion:")]
void IdentifyWithCompletion (BITAuthenticatorIdentifyCallback completion);
[Export ("identified")]
bool Identified { [Bind ("isIdentified")] get; }
[Export("validateWithCompletion:")]
bool ValidateWithCompletion (BITAuthenticatorValidateCallback completion);
[Export ("validated")]
bool Validated { [Bind ("isValidated")] get; }
[Export("cleanupInternalStorage")]
void CleanupInternalStorage();
[Export("publicInstallationIdentifier")]
string PublicInstallationIdentifier { get; }
}
#endif
#if !CRASHONLY
[BaseType (typeof (BITHockeyBaseManager))]
public partial interface BITMetricsManager
{
// @property (nonatomic, assign) BOOL disabled;
[Export ("disabled", ArgumentSemantic.Assign)]
bool Disabled { get; set; }
// - (void)trackEventWithName:(NSString*)eventName;
[Export ("trackEventWithName:")]
void TrackEvent (string eventName);
[Export ("serverURL", ArgumentSemantic.Retain)]
string ServerURL { get; set; }
}
#endif
#if !CRASHONLY
[BaseType(typeof(BITHockeyBaseManager))]
public partial interface BITFeedbackManager
{
// Removed in 3.6.2
// [Wrap ("WeakDelegate")]
// BITFeedbackManagerDelegate Delegate { get; set; }
//
// [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
// NSObject WeakDelegate { get; set; }
[Export("requireUserName")]
BITFeedbackUserDataElement RequireUserName { get;set; }
[Export("requireUserEmail")]
BITFeedbackUserDataElement RequireUserEmail { get;set; }
[Export("showAlertOnIncomingMessages")]
bool ShowAlertOnIncomingMessages { get;set; }
// @property (readwrite, nonatomic) BITFeedbackObservationMode feedbackObservationMode;
[Export ("feedbackObservationMode")]
BITFeedbackObservationMode FeedbackObservationMode { get; set; }
[Export("showFirstRequiredPresentationModal")]
bool ShowFirstRequiredPresentationModel { get;set; }
// -(UIImage *)screenshot;
[Export ("screenshot")]
UIImage Screenshot ();
[Export("showFeedbackListView")]
void ShowFeedbackListView();
[Export("feedbackListViewController:")]
UITableViewController FeedbackListViewController(bool modal);
[Export("showFeedbackComposeView")]
void ShowFeedbackComposeView();
// -(void)showFeedbackComposeViewWithPreparedItems:(NSArray *)items;
[Export ("showFeedbackComposeViewWithPreparedItems:")]
void ShowFeedbackComposeViewWithPreparedItems (NSObject [] items);
// -(void)showFeedbackComposeViewWithGeneratedScreenshot;
[Export ("showFeedbackComposeViewWithGeneratedScreenshot")]
void ShowFeedbackComposeViewWithGeneratedScreenshot ();
[Export("feedbackComposeViewController")]
BITFeedbackComposeViewController FeedbackComposeViewController();
// @property (copy, nonatomic) NSArray * _Nullable feedbackComposerPreparedItems __attribute__((deprecated("Use -preparedItemsForFeedbackManager: delegate method instead.")));
[Obsolete ("Use -preparedItemsForFeedbackManager: delegate method instead.")]
[Export("feedbackComposerPreparedItems")]
NSArray FeedbackComposerPreparedItems { get;set; }
// Added in 3.7.1
[Export ("feedbackComposeHideImageAttachmentButton")]
bool FeedbackComposeHideImageAttachmentButton { get; set; }
}
#endif
// @interface BITCrashDetails : NSObject
[BaseType (typeof (NSObject))]
public partial interface BITCrashDetails {
// @property (readonly, nonatomic, strong) NSString * incidentIdentifier;
[Export ("incidentIdentifier", ArgumentSemantic.Retain)]
string IncidentIdentifier { get; }
// @property (readonly, nonatomic, strong) NSString * reporterKey;
[Export ("reporterKey", ArgumentSemantic.Retain)]
string ReporterKey { get; }
// @property (readonly, nonatomic, strong) NSString * signal;
[Export ("signal", ArgumentSemantic.Retain)]
string Signal { get; }
// @property (readonly, nonatomic, strong) NSString * exceptionName;
[Export ("exceptionName", ArgumentSemantic.Retain)]
string ExceptionName { get; }
// @property (readonly, nonatomic, strong) NSString * exceptionReason;
[Export ("exceptionReason", ArgumentSemantic.Retain)]
string ExceptionReason { get; }
// @property (readonly, nonatomic, strong) NSDate * appStartTime;
[Export ("appStartTime", ArgumentSemantic.Retain)]
NSDate AppStartTime { get; }
// @property (readonly, nonatomic, strong) NSDate * crashTime;
[Export ("crashTime", ArgumentSemantic.Retain)]
NSDate CrashTime { get; }
// @property (readonly, nonatomic, strong) NSString * osVersion;
[Export ("osVersion", ArgumentSemantic.Retain)]
string OsVersion { get; }
// @property (readonly, nonatomic, strong) NSString * osBuild;
[Export ("osBuild", ArgumentSemantic.Retain)]
string OsBuild { get; }
// Added in 3.7.1
[Export ("appVersion", ArgumentSemantic.Strong)]
string AppVersion { get; }
// Added in 3.7.1
[Export ("appProcessIdentifier", ArgumentSemantic.Assign)]
nuint AppProcessIdentifier { get; }
// @property (readonly, nonatomic, strong) NSString * appBuild;
[Export ("appBuild", ArgumentSemantic.Retain)]
string AppBuild { get; }
// -(BOOL)isAppKill;
[Export ("isAppKill")]
bool IsAppKill { get; }
}
#if !CRASHONLY
[BaseType(typeof(NSObject))]
public partial interface BITUpdateManager
{
// Removed in 3.6.2
// [Wrap ("WeakDelegate")]
// BITUpdateManagerDelegate Delegate { get; set; }
//
// [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
// NSObject WeakDelegate { get; set; }
[Export("updateSetting", ArgumentSemantic.Assign)]
BITUpdateSetting UpdateSetting { get;set; }
[Export("checkForUpdateOnLaunch")]
bool CheckForUpdateOnLaunch { [Bind("isCheckForUpdateOnLaunch")]get;set; }
[Export("checkForUpdate")]
void CheckForUpdate();
[Export("alwaysShowUpdateReminder")]
bool AlwaysShowUpdateReminder { get;set; }
[Export("showDirectInstallOption")]
bool ShowDirectInstallOption { [Bind("isShowingDirectInstallOption")]get; set; }
[Export("expiryDate")]
NSDate ExpiryDate { get;set; }
[Export("disableUpdateCheckOptionWhenExpired")]
bool DisableUpdateCheckOptionWhenExpired { get;set; }
[Export("hockeyViewController:")]
UIViewController HockeyViewController(bool modal);
[Export("showUpdateView")]
void ShowUpdateView();
}
#endif
#if !CRASHONLY
// @interface BITHockeyBaseViewController : UITableViewController
[BaseType (typeof (UITableViewController))]
interface BITHockeyBaseViewController {
// -(instancetype)initWithModalStyle:(BOOL)modal;
[Export ("initWithModalStyle:")]
IntPtr Constructor (bool modal);
// -(instancetype)initWithStyle:(UITableViewStyle)style modal:(BOOL)modal;
[Export ("initWithStyle:modal:")]
IntPtr Constructor (UITableViewStyle style, bool modal);
// @property (readwrite, nonatomic) BOOL modalAnimated;
[Export ("modalAnimated")]
bool ModalAnimated { get; set; }
}
#endif
// @interface BITCrashMetaData : NSObject
[BaseType (typeof (NSObject))]
public partial interface BITCrashMetaData {
// @property (copy, nonatomic) NSString * userDescription;
[Export ("userDescription")]
string UserDescription { get; set; }
// @property (copy, nonatomic) NSString * userName;
[Export ("userName")]
string UserName { get; set; }
// @property (copy, nonatomic) NSString * userEmail;
[Export ("userEmail")]
string UserEmail { get; set; }
// @property (copy, nonatomic) NSString * userID;
[Export ("userID")]
string UserID { get; set; }
}
[BaseType(typeof(BITHockeyBaseManager))]
public partial interface BITCrashManager
{
// Removed in 3.6.2
// [Wrap ("WeakDelegate")]
// BITCrashManagerDelegate Delegate { get; set; }
//
// [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
// NSObject WeakDelegate { get; set; }
[Export("crashManagerStatus")]
BITCrashManagerStatus CrashManagerStatus { get;set; }
[Export("enableMachExceptionHandler")]
bool EnableMachExceptionHandler { [Bind("isMachExceptionHandlerEnabled")]get; set; }
[Export("enableOnDeviceSymbolication")]
bool EnableOnDeviceSymbolication { [Bind("isOnDeviceSymbolicationEnabled")]get; set; }
// Added in 3.6.2
// @property (assign, nonatomic, getter = isAppNotTerminatingCleanlyDetectionEnabled) BOOL enableAppNotTerminatingCleanlyDetection;
[Export ("enableAppNotTerminatingCleanlyDetection", ArgumentSemantic.UnsafeUnretained)]
bool EnableAppNotTerminatingCleanlyDetection { [Bind ("isAppNotTerminatingCleanlyDetectionEnabled")] get; set; }
// -(void)setCrashCallbacks:(BITCrashManagerCallbacks *)callbacks;
//[Export ("setCrashCallbacks:")]
//unsafe void SetCrashCallbacks (BITCrashManagerCallbacks* callbacks);
[Export("showAlwaysButton")]
bool ShowAlwaysButton { [Bind("shouldShowAlwaysButton")]get; set; }
[Export("didCrashInLastSession")]
bool DidCrashInLastSession { get; }
// @property (readonly, nonatomic) BITCrashDetails * lastSessionCrashDetails;
[Export ("lastSessionCrashDetails")]
BITCrashDetails LastSessionCrashDetails { get; }
[Export("isDebuggerAttached")]
bool IsDebuggerAttached();
[Export("generateTestCrash")]
void GenerateTestCrash();
// -(BOOL)handleUserInput:(BITCrashManagerUserInput)userInput withUserProvidedMetaData:(BITCrashMetaData *)userProvidedMetaData;
[Export ("handleUserInput:withUserProvidedMetaData:")]
bool HandleUserInput (BITCrashManagerUserInput userInput, BITCrashMetaData userProvidedMetaData);
// -(void)setAlertViewHandler:(BITCustomAlertViewHandler)alertViewHandler;
[Export ("setAlertViewHandler:")]
void SetAlertViewHandler (Action alertViewHandler);
// @property (readonly, nonatomic) BOOL didReceiveMemoryWarningInLastSession;
[Export ("didReceiveMemoryWarningInLastSession")]
bool DidReceiveMemoryWarningInLastSession { get; }
// @property (readonly, nonatomic) NSTimeInterval timeIntervalCrashInLastSessionOccurred;
[Export ("timeIntervalCrashInLastSessionOccurred")]
double TimeIntervalCrashInLastSessionOccurred { get; }
}
#if !CRASHONLY
[BaseType(typeof(BITHockeyBaseManager))]
public partial interface BITStoreUpdateManager
{
// Removed in 3.6.2
// [Wrap ("WeakDelegate")]
// BITStoreUpdateManagerDelegate Delegate { get; set; }
//
// [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
// NSObject WeakDelegate { get; set; }
[Export("updateSetting", ArgumentSemantic.Assign)]
BITUpdateSetting UpdateSetting { get;set; }
[Export("countryCode")]
string CountryCode { get;set; }
[Export("checkForUpdateOnLaunch")]
bool CheckForUpdateOnLaunch { [Bind("isCheckingForUpdateOnLaunch")]get;set; }
[Export("updateUIEnabled")]
bool UpdateUIEnabled { [Bind("isUpdateUIEnabled")]get;set; }
[Export("checkForUpdate")]
void CheckForUpdate();
}
#endif
#if !CRASHONLY
[BaseType(typeof(UIViewController))]
public partial interface BITFeedbackComposeViewController : IUITextViewDelegate
{
[Wrap ("WeakDelegate")]
BITFeedbackComposeViewControllerDelegate Delegate { get; set; }
// Added in 3.7.1
[Export ("hideImageAttachmentButton")]
bool HideImageAttachmentButton { get;set; }
[Export ("delegate", ArgumentSemantic.Weak)][NullAllowed]
NSObject WeakDelegate { get; set; }
[Export("prepareWithItems:")]
void PrepareWithItems(NSArray items);
}
#endif
#if !CRASHONLY
// @interface BITUpdateViewController : BITHockeyBaseViewController
[BaseType (typeof (BITHockeyBaseViewController))]
public partial interface BITUpdateViewController {
}
#endif
[BaseType (typeof (BITHockeyAttachment))]
public partial interface BITCrashAttachment {
// Removed in 3.6.2
// [Export ("filename", ArgumentSemantic.Retain)]
// string Filename { get; }
//
// [Export ("crashAttachmentData", ArgumentSemantic.Retain)]
// NSData AttachmentData { get; }
//
// [Export ("contentType", ArgumentSemantic.Retain)]
// string ContentType { get; }
[Export ("initWithFilename:crashAttachmentData:contentType:")]
IntPtr Constructor (string filename, NSData crashAttachmentData, string contentType);
}
#if !CRASHONLY
[BaseType(typeof(NSObject))]
[Model][Protocol]
public partial interface BITAuthenticatorDelegate
{
[Export("authenticator:willShowAuthenticationController:")]
[EventArgs("WillShowAuthenticationController")]
void WillShowAuthenticationController(BITAuthenticator authenticator, UIViewController viewController);
}
#endif
[BaseType(typeof(NSObject))]
[Model][Protocol]
public partial interface BITCrashManagerDelegate
{
[Export ("applicationLogForCrashManager:")]
string ApplicationLogForCrashManager (BITCrashManager crashManager);
[Export ("attachmentForCrashManager:")]
BITHockeyAttachment AttachmentForCrashManager (BITCrashManager crashManager);
[Export ("crashManagerWillShowSubmitCrashReportAlert:")]
void WillShowSubmitCrashReportAlert (BITCrashManager crashManager);
[Export ("crashManagerWillCancelSendingCrashReport:")]
void WillCancelSendingCrashReport (BITCrashManager crashManager);
[Export ("crashManagerWillSendCrashReportsAlways:")]
void WillSendCrashReportsAlways (BITCrashManager crashManager);
[Export ("crashManagerWillSendCrashReport:")]
void WillSendCrashReport (BITCrashManager crashManager);
[Export ("crashManager:didFailWithError:")]
void DidFailWithError (BITCrashManager crashManager, NSError error);
[Export ("crashManagerDidFinishSendingCrashReport:")]
void DidFinishSendingCrashReport (BITCrashManager crashManager);
// @optional -(BOOL)considerAppNotTerminatedCleanlyReportForCrashManager:(BITCrashManager *)crashManager;
[Export ("considerAppNotTerminatedCleanlyReportForCrashManager:")]
bool ConsiderAppNotTerminatedCleanlyReportForCrashManager (BITCrashManager crashManager);
}
#if !CRASHONLY
[BaseType (typeof (NSObject))]
[Model][Protocol]
public partial interface BITUpdateManagerDelegate
{
[Export ("shouldDisplayExpiryAlertForUpdateManager:")]
bool ShouldDisplayExpiryAlertForUpdateManager (BITUpdateManager updateManager);
[Export ("didDisplayExpiryAlertForUpdateManager:")]
void DidDisplayExpiryAlertForUpdateManager (BITUpdateManager updateManager);
[Export ("updateManagerShouldSendUsageData:")]
bool UpdateManagerShouldSendUsageData (BITUpdateManager updateManager);
// @optional -(void)updateManagerWillExitApp:(BITUpdateManager *)updateManager;
[Export ("updateManagerWillExitApp:")]
void UpdateManagerWillExitApp (BITUpdateManager updateManager);
//(BOOL)willStartDownloadAndUpdate:(BITUpdateManager *)updateManager;
[Export ("willStartDownloadAndUpdate:")]
bool WillStartDownloadAndUpdated (BITUpdateManager updateManager);
}
#endif
#if !CRASHONLY
[BaseType (typeof (BITFeedbackComposeViewControllerDelegate))]
[Model][Protocol]
public partial interface BITFeedbackManagerDelegate //: BITFeedbackComposeViewControllerDelegate
{
[Export ("feedbackManagerDidReceiveNewFeedback:")]
void DidReceiveNewFeedback (BITFeedbackManager feedbackManager);
// Added in 3.7.1
//- (BOOL) allowAutomaticFetchingForNewFeedbackForManager:(BITFeedbackManager *)feedbackManager;
[Export ("allowAutomaticFetchingForNewFeedbackForManager:")]
bool AllowAutomaticFetching (BITFeedbackManager feedbackManager);
// @optional -(NSArray * _Nullable)preparedItemsForFeedbackManager:(BITFeedbackManager * _Nonnull)feedbackManager;
[Export ("preparedItemsForFeedbackManager:")]
NSArray PreparedItemsForFeedbackManager (BITFeedbackManager feedbackManager);
}
#endif
[BaseType(typeof(NSObject))]
[Model][Protocol]
public partial interface BITHockeyManagerDelegate
{
[Export("shouldUseLiveIdentifierForHockeyManager:")]
bool ShouldUseLiveIdentifierForHockeyManager(BITHockeyManager manager);
[Export("viewControllerForHockeyManager:componentManager:")]
UIViewController ViewControllerForHockeyManager(BITHockeyManager hockeyManager, BITHockeyBaseManager componentManager);
[Export("userIDForHockeyManager:componentManager:")]
string UserIdForHockeyManager(BITHockeyManager hockeyManager, BITHockeyBaseManager componentManager);
[Export("userNameForHockeyManager:componentManager:")]
string UserNameForHockeyManager(BITHockeyManager hockeyManager, BITHockeyBaseManager componentManager);
[Export("userEmailForHockeyManager:componentManager:")]
string UserEmailForHockeyManager(BITHockeyManager hockeyManager, BITHockeyBaseManager componentManager);
}
// @interface BITHockeyAttachment : NSObject <NSCoding>
[BaseType (typeof (NSObject))]
public partial interface BITHockeyAttachment : INSCoding {
// -(instancetype)initWithFilename:(NSString *)filename hockeyAttachmentData:(NSData *)hockeyAttachmentData contentType:(NSString *)contentType;
[Export ("initWithFilename:hockeyAttachmentData:contentType:")]
IntPtr Constructor (string filename, NSData hockeyAttachmentData, string contentType);
// @property (readonly, nonatomic, strong) NSString * filename;
[Export ("filename", ArgumentSemantic.Retain)]
string Filename { get; }
// @property (readonly, nonatomic, strong) NSData * hockeyAttachmentData;
[Export ("hockeyAttachmentData", ArgumentSemantic.Retain)]
NSData HockeyAttachmentData { get; }
// @property (readonly, nonatomic, strong) NSString * contentType;
[Export ("contentType", ArgumentSemantic.Retain)]
string ContentType { get; }
}
#if !CRASHONLY
// @interface BITFeedbackListViewController : BITHockeyBaseViewController <UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, UIAlertViewDelegate, QLPreviewControllerDataSource>
[BaseType (typeof (BITHockeyBaseViewController))]
interface BITFeedbackListViewController : IUITableViewDelegate, IUITableViewDataSource, IUIActionSheetDelegate, IUIAlertViewDelegate, IQLPreviewControllerDataSource {
}
#endif
#if !CRASHONLY
[BaseType(typeof(NSObject))]
[Model][Protocol]
public partial interface BITFeedbackComposeViewControllerDelegate
{
[Export("feedbackComposeViewController:didFinishWithResult:")]
void DidFinishWithResult(BITFeedbackComposeViewController viewController, BITFeedbackComposeResult result);
[Export("feedbackComposeViewControllerDidFinish:")]
void DidFinish(BITFeedbackComposeViewController viewController);
}
#endif
#if !CRASHONLY
[BaseType(typeof(NSObject))]
[Model][Protocol]
public partial interface BITStoreUpdateManagerDelegate
{
[Export("detectedUpdateFromStoreUpdateManager:newVersion:storeURL:")]
void DetectedUpdateFromStoreUpdateManager(BITStoreUpdateManager storeUpdateManager, string newVersion, NSUrl storeUrl);
}
#endif
#if !CRASHONLY
// @interface BITFeedbackActivity : UIActivity <BITFeedbackComposeViewControllerDelegate>
[BaseType (typeof(UIActivity))]
interface BITFeedbackActivity : BITFeedbackComposeViewControllerDelegate
{
// @property (nonatomic, strong) UIImage * customActivityImage;
[Export ("customActivityImage", ArgumentSemantic.Strong)]
UIImage CustomActivityImage { get; set; }
// @property (nonatomic, strong) NSString * customActivityTitle;
[Export ("customActivityTitle", ArgumentSemantic.Strong)]
string CustomActivityTitle { get; set; }
}
#endif
}