ZendriveMockAccidentConfig
@interface ZendriveMockAccidentConfig : NSObject <NSCopying>
This class contains parameters required by +[ZendriveTest raiseMockAccidentUsingConfig:] during setup.
-
This field specifies the confidence for the potential accident callback.
Default value is
ZendriveAccidentConfidence.ZendriveAccidentConfidenceHigh.Declaration
Objective-C
@property (nonatomic) ZendriveAccidentConfidence potentialAccidentConfidence; -
This field specifies the confidence for the final accident callback.
Default value is
ZendriveAccidentConfidence.ZendriveAccidentConfidenceHigh.Declaration
Objective-C
@property (nonatomic) ZendriveAccidentConfidence finalAccidentConfidence; -
This field specifies the confidence number for the potential accident callback.
Default value is 70.
Declaration
Objective-C
@property (nonatomic) int potentialAccidentConfidenceNumber; -
This field specifies the confidence number for the final accident callback.
Default value is 70.
Declaration
Objective-C
@property (nonatomic) int finalAccidentConfidenceNumber; -
This field specifies the callback delay (in seconds) between the potential and final accident callback.
Default value is 20 seconds.
Declaration
Objective-C
@property (nonatomic) int delayBetweenCallbacks; -
This field specifies the vehicle type at the time of potential accident callback and final accident callback.
Default value is
ZendriveVehicleType.ZendriveVehicleTypeCar.Declaration
Objective-C
@property (nonatomic) ZendriveVehicleType vehicleType; -
This field specifies the collision severity at the time of potential accident callback and final accident callback.
Default value is
ZendriveCollisionSeverity.ZendriveCollisionSeverityHigh.Declaration
Objective-C
@property (nonatomic) ZendriveCollisionSeverity collisionSeverity; -
This field specifies the direction of impact at the time of potential accident callback and final accident callback.
Default value is
ZendriveDirectionOfImpact.ZendriveDirectionOfImpactUnknown.Declaration
Objective-C
@property (nonatomic) ZendriveDirectionOfImpact directionOfImpact; -
This method causes the final callback to invalidate the potential accident callback.
Invalidating final callbacks have confidence number as 0 and confidence as
ZendriveAccidentConfidence.ZendriveAccidentConfidenceInvalid, signifying that the accident send out via the potential accident callback on further analysis has been reclassified as not being an accident.Declaration
Objective-C
- (void)invalidateFinalCallback;
ZendriveMockAccidentConfig Class Reference