Event

@objc(ZDEvent)
public class Event : NSObject

Represents a driving behavior event like phone use, aggressive acceleration etc. It is part of DriveInfo object of ZendriveDelegate.processEnd(ofDrive estimatedDriveInfo:) callback.

  • Start location of the event.

    Declaration

    Swift

    @objc
    public var startLocation: LocationPoint
  • Stop location of the event.

    Declaration

    Swift

    @objc
    public var stopLocation: LocationPoint
  • Epoch timestamp of the start of the event.

    Declaration

    Swift

    @objc
    public var startTime: Int64
  • Epoch timestamp of the end of the event;

    Declaration

    Swift

    @objc
    public var endTime: Int64
  • The type of the event.

    Declaration

    Swift

    @objc
    public var eventType: EventType
  • The severity of the event.

    Declaration

    Swift

    @objc
    public var eventSeverity: EventSeverity
  • Denotes the turn direction of a hard turn whether a left or right turn.

    Declaration

    Swift

    @objc
    public var turnDirection: TurnDirection
  • Additional data in the eventType is Event.overSpeeding, will be nil otherwise.

    Declaration

    Swift

    @objc
    public var speedingData: SpeedingData?