diff --git a/Classes/BITCrashManager.h b/Classes/BITCrashManager.h index 3afe47092b..9a6ba8a0f5 100644 --- a/Classes/BITCrashManager.h +++ b/Classes/BITCrashManager.h @@ -39,6 +39,11 @@ #import #endif +/** + * Custom block that handles the alert that prompts the user whether he wants to send crash reports + */ +typedef void(^customAlertViewHandler)(); + /** * Crash Manager status diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index 303c0d0912..f4cb6e1508 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -446,7 +446,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus"; } -- (void)setAlertViewHandler:(void (^)())alertViewHandler{ +- (void)setAlertViewHandler:(customAlertViewHandler)alertViewHandler{ _alertViewHandler = alertViewHandler; }