ZendriveDriveResumeInfo
@interface ZendriveDriveResumeInfo : 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
Objective-C
@property (nonatomic, nonnull) NSString *driveId;
-
The insurance period for this drive
Declaration
Objective-C
@property (nonatomic) ZendriveInsurancePeriod insurancePeriod;
-
The start timestamp of trip in milliseconds since epoch.
Declaration
Objective-C
@property (nonatomic) long long startTimestamp;
-
The distance of the trip in metres
Declaration
Objective-C
@property (nonatomic) double distance;
-
A list of
ZendriveLocationPoint
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
Objective-C
@property (nonatomic, strong, nonnull) NSArray *waypoints;
-
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 (nonatomic, strong, 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 (nonatomic, strong, nullable) NSString *sessionId;
-
The start timestamp of the gap in drive recording in millisecs.
The drive was resumed after this gap.
Declaration
Objective-C
@property (nonatomic) long long driveGapStartTimestampMillis;
-
The end timestamp of the gap in drive recording in millisecs.
The drive was resumed after this gap.
Declaration
Objective-C
@property (nonatomic) long long driveGapEndTimestampMillis;