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).
VehicleCrashListener
setVehicleCrashListener(VehicleCrashListener)
This interface is used with setCrashCallback(CrashCallback).
setCrashCallback(CrashCallback)
onCrash()
Copyvoid onCrash(long time, @Nullable Location lastKnownLocation)Called when a vehicle crash is detected during a trip.
void onCrash(long time, @Nullable Location lastKnownLocation)
Called when a vehicle crash is detected during a trip.
time
The UTC time of the detected crash in milliseconds.
lastKnownLocation
A Locationarrow-up-right object indicating the last known location of the device when the crash was detected.
Last updated 2 years ago