CrashCallback

This interface is used with setCrashCallback(CrashCallback).

CrashCallback API

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.

Last updated