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 handler as follows:
Sentiance.shared.setVehicleCrashHandler { crashEvent in
// Handle event
CrashDetectionApi.getInstance(context).setVehicleCrashListener { vehicleCrashEvent ->
To access the CrashDetectionApi class on Android, you need to add a dependency on the com.sentiance:sdk-crash-detection artifact in your app's build.gradle file.
Copy link