ZendriveActiveDriveInfo

@interface ZendriveActiveDriveInfo : NSObject

Information about the active drive if any.

  • The unique Id for this drive

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *driveId;
  • The start timestamp of trip in milliseconds since epoch.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) long long startTimestamp;
  • The insurance period for this drive

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) ZendriveInsurancePeriod insurancePeriod;
  • The current speed of vehicle in metres/second.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double currentSpeed;
  • The distance covered so far in this trip in meters.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double distance;
  • 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

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *trackingId;
  • 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

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *sessionId;