ZendriveDriveResumeInfo Class Reference
Inherits from | NSObject |
Declared in | ZendriveDriveResumeInfo.h |
Overview
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.
Tasks
-
driveId
property -
startTimestamp
property -
distance
property -
waypoints
property -
trackingId
property -
sessionId
property -
driveGapStartTimestampMillis
property -
driveGapEndTimestampMillis
property
Properties
distance
The distance of the trip in metres
@property (nonatomic, assign) double distance
Declared In
ZendriveDriveResumeInfo.h
driveGapEndTimestampMillis
The end timestamp of the gap in drive recording in millisecs.
@property (nonatomic) long long driveGapEndTimestampMillis
Discussion
The drive was resumed after this gap.
Declared In
ZendriveDriveResumeInfo.h
driveGapStartTimestampMillis
The start timestamp of the gap in drive recording in millisecs.
@property (nonatomic) long long driveGapStartTimestampMillis
Discussion
The drive was resumed after this gap.
Declared In
ZendriveDriveResumeInfo.h
driveId
The unique Id for this drive
@property (nonatomic, readonly, nonnull) NSString *driveId
Declared In
ZendriveDriveResumeInfo.h
sessionId
Session id is specified by the enclosing application when it wants to record a session using [Zendrive startSession:]
@property (nonatomic, strong, nullable) NSString *sessionId
Discussion
sessionId will be nil if there is no session associated with that drive.
Declared In
ZendriveDriveResumeInfo.h
startTimestamp
The start timestamp of trip in milliseconds since epoch.
@property (nonatomic, assign) long long startTimestamp
Declared In
ZendriveDriveResumeInfo.h
trackingId
Tracking id is specified by the enclosing application when it wants to start a drive manually by calling [Zendrive startDrive:]
@property (nonatomic, strong, nullable) NSString *trackingId
Discussion
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.
Declared In
ZendriveDriveResumeInfo.h
waypoints
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.
@property (nonatomic, strong, nonnull) NSArray *waypoints
Discussion
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.
Declared In
ZendriveDriveResumeInfo.h