trigger Mock Accident
Triggers a fake accident. A fake accident will be invoked on the FairmaticListener after this function is called. Requires that the Fairmatic SDK is setup and a trip is in progress.
This function can be used to test the accident detection integration of your application.
Once setup finishes, the com.fairmatic.sdk.classes.FairmaticOperationCallback is called (if provided) with the result of the setup operation. Callback will be made on calling thread if it's Looper is already prepared, else the callback is made on the Main Thread.
Parameters
is the confidence level of the accident to trigger
called with the result of the operation when completed. In case of any error encountered, the result contains the relevant error details.
Triggers a fake accident. A fake accident will be invoked on the FairmaticListener after this function is called. Requires that the Fairmatic SDK is setup and a trip is in progress.
This function can be used to test the accident detection integration of your application.
Once setup finishes, the com.fairmatic.sdk.classes.FairmaticOperationCallback is called (if provided) with the result of the setup operation. Callback will be made on calling thread if it's Looper is already prepared, else the callback is made on the Main Thread.
Parameters
is the configuration object defining the details of the collision
called with the result of the operation when completed. In case of any error encountered, the result contains the relevant error details.