VehicleCrashDetectionFeedback
Last updated
This class is used for submitting feedback about a vehicle crash to the Sentiance SDK. See submitVehicleCrashDetectionFeedback.
crash()Creates feedback for a vehicle crash that occurred on the specified date, with an optional crash location. Use this to report crashes that either were or were not detected by the Sentiance SDK.
Returns a VehicleCrashDetectionFeedback instance with the provided input.
static func crash(
crashDate: Date,
wasCrashDetectedBySentiance: Bool,
crashLocation: CLLocationCoordinate2D? = nil
) -> VehicleCrashDetectionFeedbackcrashDate
The date of the crash event reported by the Sentiance SDK, or if a crash was not detected, the date of the actual crash.
wasCrashDetectedBySentiance
Whether the Sentiance SDK detected and reported the crash.
crashLocation
The location where the crash happened.
noCrash()Creates feedback indicating that no crash occurred for a crash event reported by the Sentiance SDK. Use this to report false positives when the SDK incorrectly detected a vehicle crash.
Returns a VehicleCrashDetectionFeedback instance with the provided input.
eventDate
The date of the crash event reported by the Sentiance SDK.
crashLocationThe location where the crash happened if it was provided to crash(). Otherwise, returns null.
eventDateThe eventDate provided to noCrash(), or the crashDate provided to crash().
wasCrashDetectedBySentianceWhether the Sentiance SDK detected and reported the crash.
wasRealCrashWhether a crash occurred on the specified eventDate.
Last updated
static func noCrash(eventDate: Date) -> VehicleCrashDetectionFeedbacklet wasRealCrash: Boollet eventDate: Datelet wasCrashDetectedBySentiance: Boollet wasRealCrash: Bool