public class SavedLocation extends Location implements Parcelable, Cloneable
LocationsManager.getSavedLocations(com.inrix.sdk.LocationsManager.GetLocationsOptions, com.inrix.sdk.LocationsManager.IGetSavedLocationsResponseListener)
,
LocationsManager.saveLocation(com.inrix.sdk.LocationsManager.SaveLocationOptions, com.inrix.sdk.LocationsManager.ISaveLocationResponseListener)
Modifier and Type | Class and Description |
---|---|
static class |
SavedLocation.LocationType
The type of location.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SavedLocation> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SavedLocation(String name,
SavedLocation.LocationType type,
String address,
GeoPoint coordinates)
Initializes a new instance of the
SavedLocation . |
SavedLocation(String name,
SavedLocation.LocationType type,
String address,
GeoPoint coordinates,
Schedule schedule)
Initializes a new instance of the
SavedLocation . |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
describeContents() |
boolean |
equals(Object o) |
ContactInfoCollection |
getAssociatedContacts()
Gets the collection of
ContactInfo associated with this SavedLocation . |
Schedule |
getSchedule()
Get the schedule associated with this saved location.
|
SavedLocation.LocationType |
getType()
Gets the type of location, such as home or work.
|
int |
hashCode() |
void |
setSchedule(Schedule schedule)
Set the schedule for this saved location.
|
void |
setType(SavedLocation.LocationType locationType)
Sets the type of location, such as home or work.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
getAddress, getGeoPoint, getName, getTimeZone, setAddress, setGeoPoint, setName
public static final Parcelable.Creator<SavedLocation> CREATOR
public SavedLocation(@Nullable String name, @Nullable SavedLocation.LocationType type, @Nullable String address, @NonNull GeoPoint coordinates)
SavedLocation
.name
- The name of the saved location. May be null
.type
- The type of the saved location. (See SavedLocation.LocationType
).address
- The address of the saved location. May be null
.coordinates
- The saved location's latitude/longitude coordinates. Must not be null
.public SavedLocation(@Nullable String name, @Nullable SavedLocation.LocationType type, @Nullable String address, @NonNull GeoPoint coordinates, @Nullable Schedule schedule)
SavedLocation
.name
- The name of the saved location. May be null
.type
- The type of the saved location. (See SavedLocation.LocationType
).address
- The address of the saved location. May be null
.coordinates
- The saved location's latitude/longitude coordinates. Must not be null
.schedule
- Saved location schedule.public SavedLocation.LocationType getType()
SavedLocation.LocationType
public void setType(SavedLocation.LocationType locationType)
locationType
- The location type.SavedLocation.LocationType
public ContactInfoCollection getAssociatedContacts()
ContactInfo
associated with this SavedLocation
.@Nullable public Schedule getSchedule()
SavedLocation
schedule.public void setSchedule(@Nullable Schedule schedule)
SavedLocation
can only have a Schedule.ScheduleType.ARRIVAL
schedule since the origin
of the trip is unspecified.schedule
- SavedLocation
schedule.public int describeContents()
describeContents
in interface Parcelable
describeContents
in class Location
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
writeToParcel
in class Location
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.