onPotentialAccident

open fun onPotentialAccident(context: Context, accidentInfo: AccidentInfo?)

This is an experimental feature, disabled by default. An early notification of a possible collision. This collision is confirmed or invalidated by onAccident callback. Contact support@Fairmatic.com to enable the feature.

If the callback is invalidated by onAccident, the AccidentInfo.confidence will be set to FairmaticAccidentConfidence.INVALID and AccidentInfo.confidenceNumber will be set to 0.

@param context - The context in which the receiver is running. @param accidentInfo - Information about the accident.