Detecting Vehicle Crashes

The Sentiance SDK can be configured to detect vehicle accidents/crashes during trips. You can be notified of these crash events by setting a callback as follows:

iOS
Android
// Signature
- (void)setCrashListener:(void (^)(NSDate *date, CLLocation *lastKnownLocation))crashCallback;
// Usage
[[SENTSDK sharedInstance] setCrashListener:^(NSDate *date, CLLocation *lastKnownLocation) {
// Handle vehicle crash event
}];
‚Äč
sentianceSdk.setCrashCallback(new CrashCallback() {
@Override
public void onCrash(long time, @Nullable Location lastKnownLocation) {
// crash detected
}
});