CrashCallback
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
This interface is deprecated. Use VehicleCrashListener
instead. See setVehicleCrashListener(VehicleCrashListener)
.
This interface is used with setCrashCallback(CrashCallback)
.
CrashCallback API
onCrash()
onCrash()
Called when a vehicle crash is detected during a trip.
Parameters
time
The UTC time of the detected crash in milliseconds.
lastKnownLocation
A Location object indicating the last known location of the device when the crash was detected.
Last updated