Crash Callback
This interface is deprecated and has been removed from v6.0.0. Use VehicleCrashListener instead. See setVehicleCrashListener(VehicleCrashListener).
This interface is used with setCrashCallback(CrashCallback).

CrashCallback API

void
onCrash (long time, @Nullable Location lastKnownLocation)

onCrash()

void onCrash(long time, @Nullable Location lastKnownLocation)
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.
Copy link
On this page
CrashCallback API
onCrash()