the callback to be invoked with the received diagnostic data.
a subscription object that you can use to unregister the listener you previously set.
Registers a listener that is invoked when a vehicle crash is detected.
the callback to be invoked when a vehicle crash is detected.
a subscription object that you can use to unregister the listener you previously set.
Invokes a dummy vehicle crash event. Use this method to test your vehicle crash detection integration.
Calling this method will invoke the listener you previously set via addVehicleCrashEventListener (if any).
Note that this method is intended only for testing your integration. It will not generate a real vehicle crash.
Returns whether vehicle crash detection is supported on the device.
The result depends on multiple criteria, such as if vehicle crash detection is enabled for the user, and if
the necessary sensors are present on the device. As such, make sure a Sentiance user has been created before
calling this function. Otherwise, the result will always be false.
true if vehicle crash detection is supported.
Registers a listener that is invoked when vehicle crash diagnostic data becomes available.
Use this function to receive diagnostic data while vehicle crash detection is running.