DriveResumeInfo

@objc
public class DriveResumeInfo : NSObject

Information about a drive that was resumed in the Zendrive SDK.

This is called after the drive recording resumes after a gap. The gap may occur due to an application restart by the OS, application kill and restart by a user, an application crash etc.

  • The unique Id for this drive

    Declaration

    Swift

    @objc
    public fileprivate(set) var driveId: String
  • The insurance period for this drive

    Declaration

    Swift

    @objc
    public var insurancePeriod: InsurancePeriod
  • The start timestamp of trip in milliseconds since epoch.

    Declaration

    Swift

    @objc
    public var startTimestamp: Int64
  • The distance of the trip in metres

    Declaration

    Swift

    @objc
    public var distance: Double
  • A list of LocationPoint objects corresponding to this trip in increasing order of timestamp. The first point corresponds to trip start location and last to trip end location.

    This is a sampled approximation of the drive which gives an indication of the path taken by the driver. It is not the full detailed location data of the drive. If no waypoints are recorded during the drive, this is an empty array.

    Declaration

    Swift

    @objc
    public var waypoints: [LocationPoint]
  • 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?
  • The start timestamp of the gap in drive recording in milliseconds.

    The drive was resumed after this gap.

    Declaration

    Swift

    @objc
    public var driveGapStartTimestampMillis: Int64
  • The end timestamp of the gap in drive recording in milliseconds.

    The drive was resumed after this gap.

    Declaration

    Swift

    @objc
    public var driveGapEndTimestampMillis: Int64