public class CalendarTrip extends Trip implements Parcelable
CalendarTrip is a Trip created from an event in the user's calendar. CalendarTrips
can not be modified, however any modifications to the original calendar event will be propagated to the
CalendarTrip. The user can add a pre-drive notification to the Trip to receive a departure
notification based on travel time and traffic to the destination of the event.
A CalendarTrip only has a destination. The origin for the CalendarTrip is determined
dynamically when an Itinerary is requested.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<CalendarTrip> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
describeContents() |
boolean |
equals(Object o) |
TripPoint |
getDestination()
Get the final destination of the
CalendarTrip. |
int |
getPreDriveNotificationMinutes()
Get the pre-drive notification time.
|
Date |
getStartDate()
Get the start date of the calendar event associated with this
CalendarTrip. |
TimeZone |
getTimeZone()
Gets the time zone of the start time of the {link CalendarTrip}.
|
String |
getTitle()
Gets the title of the
CalendarTrip. |
int |
hashCode() |
boolean |
isPreDriveNotificationEnabled()
Get the status of pre-drive notifications for this
CalendarTrip. |
boolean |
isRecurring()
Get the recurrence status of this
CalendarTrip. |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<CalendarTrip> CREATOR
public void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic int describeContents()
describeContents in interface Parcelablepublic String getTitle()
CalendarTrip.CalendarTrippublic TripPoint getDestination()
CalendarTrip.CalendarTrippublic Date getStartDate()
CalendarTrip.
For recurring events, this is the start date of the first instance of the event.public boolean isRecurring()
CalendarTrip.true if the trip is recurring, false otherwisepublic TimeZone getTimeZone()
null if this
information is not available.CalendarTrip.public boolean isPreDriveNotificationEnabled()
CalendarTrip.true if pre-drive notifications are enabled, false otherwisepublic int getPreDriveNotificationMinutes()
Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.