AccidentInfo

Information about an accident detected by the Fairmatic SDK. This is provided to the application via the FairmaticBroadcastReceiver.onAccident callback.

Properties

Link copied to clipboard

A unique identifier of this accident.

Link copied to clipboard

Collision severity of the detected accident. FairmaticCollisionSeverity.UNKNOWN is the default value

Link copied to clipboard

Confidence measure of the detected accident.

Link copied to clipboard

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.

Link copied to clipboard

Direction of impact of the detected accident. FairmaticDirectionOfImpact.UNKNOWN is the default value

Link copied to clipboard

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.

Link copied to clipboard

The location of the accident.

Link copied to clipboard

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.

Link copied to clipboard

The timestamp of the accident in milliseconds since epoch.

Link copied to clipboard

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.

Link copied to clipboard

Vehicle type detected by sdk, at the time of accident. FairmaticVehicleType.CAR is the default value