ActiveDriveInfo

@objc
public class ActiveDriveInfo : NSObject

Information about the active drive if any.

  • The unique Id for this drive

    Declaration

    Swift

    @objc
    public fileprivate(set) var driveId: String
  • The start timestamp of trip in milliseconds since epoch.

    Declaration

    Swift

    @objc
    public var startTimestamp: Int64
  • The insurance period for this drive

    Declaration

    Swift

    public var insurancePeriod: InsurancePeriod
  • The current speed of vehicle in metres/second.

    Declaration

    Swift

    @objc
    public var currentSpeed: Double
  • The distance covered so far in this trip in meters.

    Declaration

    Swift

    @objc
    public var distance: Double
  • Tracking id is specified by the enclosing application when it wants to start a drive manually by calling Zendrive.startManualDrive(_:completionHandler:)

    This may be the case for example in a taxi cab application that would know when to start a drive based on when a meter gets flagged. trackingId will be nil in case of auto detected drives.

    Declaration

    Swift

    @objc
    public var trackingId: String?
  • Session id is specified by the enclosing application when it wants to record a session using Zendrive.startSession(_:)

    sessionId will be nil if there is no session associated with that drive.

    Declaration

    Swift

    @objc
    public var sessionId: String?