Add BITCrashManagerDelegate that is invoked if the user chooses not to send a crash report

This commit is contained in:
Andreas Linde 2012-07-22 04:12:46 +02:00
parent 8920cbc6c4
commit 352230b5f7
2 changed files with 11 additions and 0 deletions

View File

@ -355,6 +355,10 @@
if ([alertView tag] == BITCrashAlertTypeSend) {
switch (buttonIndex) {
case 0:
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(crashReporterWillCancelSendingCrashReport:)]) {
[self.delegate crashReporterWillCancelSendingCrashReport:self];
}
_sendingInProgress = NO;
[self cleanCrashReports];
break;

View File

@ -60,6 +60,13 @@
-(void)crashReporterWillShowSubmitCrashReportAlert:(BITCrashManager *)crashReporter;
/** Invoked after the user did choose _NOT_ to send a crash in the alert
@param crashReporter The `BITCrashManager` instance invoking this delegate
*/
-(void)crashReporterWillCancelSendingCrashReport:(BITCrashManager *)crashReporter;
/** Invoked after the user did choose to send crashes always in the alert
@param crashReporter The `BITCrashManager` instance invoking this delegate