Accident Info
Information about an accident detected by the Fairmatic SDK. This is provided to the application via the FairmaticBroadcastReceiver.onAccident callback.
Properties
A unique identifier of this accident.
Collision severity of the detected accident. FairmaticCollisionSeverity.UNKNOWN is the default value
Confidence measure of the detected accident.
Measures an approximate precision of the detected collision. Ranges between 0 to 100. A confidence number of 0 indicates that it was not a collision. This is never sent as part of FairmaticBroadcastReceiver.onPotentialAccident. It is sent as part of FairmaticBroadcastReceiver.onAccident to invalidate a previous onPotentialAccident callback. Checkout FairmaticMockAccidentConfiguration.shouldInvalidateFinalCallback to test this scenario during development.
Direction of impact of the detected accident. FairmaticDirectionOfImpact.UNKNOWN is the default value
An identifier for the drive during which the accident occured. This identifier is unique for a particular FairmaticConfiguration.driverId with which the SDK is initialized.
The location of the accident.
Session id is specified by the enclosing application when it wants to com.fairmatic.sdk.Fairmatic.startSession. This will be null if there is no session is associated with this drive.
The timestamp of the accident in milliseconds since epoch.
Tracking id is specified by the enclosing application when it wants to com.fairmatic.sdk.Fairmatic.startDrive manually. This will be null if no tracking id was specified.
Vehicle type detected by sdk, at the time of accident. FairmaticVehicleType.CAR is the default value