ZendriveMockAccidentEventBuilder
@interface ZendriveMockAccidentEventBuilder : ZendriveMockPointEventBuilder
An event builder for accident event.
-
Contains callback related information about the accident. See [here]((https://zendrive-root.bitbucket.io/ios/docs/sdk-10.1.0/Classes/ZendriveMockAccidentConfig.html#).
Declaration
Objective-C
@property (nonatomic) ZendriveMockAccidentConfig *_Nonnull config;
-
-initWithTimestamp:
tripTimestamp: accidentId: confidence: confidenceNumber: vehicleType: collisionSeverity: directionOfImpact: Constructs and return a new accident event builder.
Declaration
Objective-C
- (nonnull instancetype) initWithTimestamp:(long long)timestamp tripTimestamp:(long long)tripTimestamp accidentId:(nonnull NSString *)accidentId confidence:(ZendriveAccidentConfidence)confidence confidenceNumber:(int)confidenceNumber vehicleType:(ZendriveVehicleType)vehicleType collisionSeverity:(ZendriveCollisionSeverity)collisionSeverity directionOfImpact:(ZendriveDirectionOfImpact)directionOfImpact;
Parameters
timestamp
start timestamp of the event.
tripTimestamp
start timestamp of the trip to which this accident event belongs.
accidentId
confidence
confidenceNumber
vehicleType
collisionSeverity
directionOfImpact
-
Constructs and return a new accident event builder. When configured, Zendrive SDK can give multiple callbacks for an accident. This API allows one to create accident builders which can be used to give out potential and final callback information.
Declaration
Objective-C
- (nonnull instancetype) initWithMockAccidentConfig:(nonnull ZendriveMockAccidentConfig *)config timestamp:(long long)timestamp tripTimestamp:(long long)tripTimestamp accidentId:(nonnull NSString *)accidentId;
Parameters
config
Accident Config which specifies the details of the information in the two callbacks.
timestamp
start timestamp of the event.
tripTimestamp
start timestamp of the trip to which this accident event belongs.