public class DriveResumeInfo extends Object implements Parcelable
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.
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DriveResumeInfo> |
CREATOR |
long |
driveGapEndTimestampMillis
The end timestamp of the gap in drive recording in millisecs.
|
long |
driveGapStartTimestampMillis
The start timestamp of the gap in drive recording in millisecs.
|
String |
driveId
An identifier for this drive that was resumed.
|
ZendriveInsurancePeriod |
insurancePeriod
The insurance period in which the drive was detected.
|
String |
sessionId
Session id is specified by the enclosing application when it wants to
record a session . |
long |
startTimeMillis
The start timestamp of the drive in milliseconds since epoch.
|
String |
trackingId
Tracking id is specified by the enclosing application when it
wants to
start a drive manually. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DriveResumeInfo()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
void |
writeToParcel(Parcel dest,
int flags) |
public String driveId
driverId
with which the SDK is initialized.
Once the drive is completed, this id can be used as the "trip_id" to query information about a trip from the Zendrive Analytics API.
public long startTimeMillis
@Nullable public String trackingId
start a drive
manually.
This will be null if no tracking id was specified.
@Nullable public String sessionId
record a session
.
This will be null if there is no session is associated with this drive.
public long driveGapStartTimestampMillis
The drive was resumed after this gap.
public long driveGapEndTimestampMillis
The drive was resumed after this gap.
@Nullable public ZendriveInsurancePeriod insurancePeriod
public static final Parcelable.Creator<DriveResumeInfo> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable