Last updated 9 months ago
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 class on Android, you need to add a dependency on the com.sentiance:sdk-crash-detection artifact in your app's build.gradle file.
CrashDetectionApi