aboutsummaryrefslogtreecommitdiff
path: root/src/client/ios/BreakpadController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/ios/BreakpadController.mm')
-rw-r--r--src/client/ios/BreakpadController.mm16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/ios/BreakpadController.mm b/src/client/ios/BreakpadController.mm
index dc5a2d1e..8d499c27 100644
--- a/src/client/ios/BreakpadController.mm
+++ b/src/client/ios/BreakpadController.mm
@@ -156,6 +156,10 @@ NSString* GetPlatform() {
});
}
+- (BOOL)isStarted {
+ return started_;
+}
+
// This method must be called from the breakpad queue.
- (void)threadUnsafeSendReportWithConfiguration:(NSDictionary*)configuration
withBreakpadRef:(BreakpadRef)ref {
@@ -289,6 +293,18 @@ NSString* GetPlatform() {
});
}
+- (void)getDateOfMostRecentCrashReport:(void(^)(NSDate *))callback {
+ NSAssert(started_, @"The controller must be started before "
+ "getDateOfMostRecentCrashReport is called");
+ dispatch_async(queue_, ^{
+ if (!breakpadRef_) {
+ callback(nil);
+ return;
+ }
+ callback(BreakpadGetDateOfMostRecentCrashReport(breakpadRef_));
+ });
+}
+
#pragma mark -
- (int)sendDelay {