com.mapsted.ui.MapUiApi.Itinerary |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | MapUiApi.Itinerary.ErrorMessageListener | Listener for error messages to show UI | |||||||||
interface | MapUiApi.Itinerary.ItemChangeListener | Listener for itinerary item changes |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
add(ItineraryItem item)
Add item to itinerary
| ||||||||||
abstract boolean |
addAll(List<ItineraryItem> stops)
Add multiple items to itinerary
| ||||||||||
abstract boolean |
addErrorMessageListener(MapUiApi.Itinerary.ErrorMessageListener listener)
Add a listener for when error message should be shown to UI
| ||||||||||
abstract boolean |
addItemChangeListener(MapUiApi.Itinerary.ItemChangeListener listener)
Add a listener for when itinerary items changed
| ||||||||||
abstract boolean |
areAllDestinationsValid()
Whether or not all destinations are valid
| ||||||||||
abstract ItineraryItem |
get(int position)
Retrieve the itinerary item in the given position
| ||||||||||
abstract List<ItineraryItem> |
getItinerary()
Fetch the current itinerary
| ||||||||||
abstract boolean |
isStartCurrentLocation()
Whether or not the start is set to the user's current location
| ||||||||||
abstract boolean |
isStartValid()
Whether or not the start position is valid
| ||||||||||
abstract void |
processRoutingRequest(RoutingRequestCallback routingRequestCallback)
Process navigation request based on the current itinerary
| ||||||||||
abstract boolean |
removeByIndex(int idx)
Remove item from itinerary by index
| ||||||||||
abstract boolean |
removeByItineraryItem(ItineraryItem item)
Remove item from itinerary (by look-up)
| ||||||||||
abstract boolean |
removeByWaypoint(Waypoint waypoint)
Remove waypoint from itinerary (by look-up)
| ||||||||||
abstract boolean |
removeErrorMessageListener(MapUiApi.Itinerary.ErrorMessageListener listener)
remove a listener for when error message should be shown to UI
| ||||||||||
abstract boolean |
removeItemChangeListener(MapUiApi.Itinerary.ItemChangeListener listener)
remove a listener for when itinerary items changed
| ||||||||||
abstract void |
reset()
Reset the itinerary (to shared prefs or default)
| ||||||||||
abstract boolean |
set(int position, ItineraryItem item)
Replace the specific position with the supplied item
| ||||||||||
abstract boolean |
setAll(List<ItineraryItem> items)
Replace existing itinerary with the supplied items
| ||||||||||
abstract boolean |
swapItems(int idx1, int idx2)
Swap itinerary item positions
| ||||||||||
abstract boolean |
updateTag(Tag tag)
If a tag with a matching tagId is present in itinerary, update its tag information
|
Add item to itinerary
item | item to add |
---|
Add multiple items to itinerary
stops | items to add |
---|
Add a listener for when error message should be shown to UI
listener | the listener |
---|
Add a listener for when itinerary items changed
listener | the listener |
---|
Whether or not all destinations are valid
Retrieve the itinerary item in the given position
position | the position |
---|
Fetch the current itinerary
Whether or not the start is set to the user's current location
Whether or not the start position is valid
Process navigation request based on the current itinerary
routingRequestCallback | routing request callback |
---|
Remove item from itinerary by index
idx | index to remove |
---|
Remove item from itinerary (by look-up)
item | item to remove |
---|
Remove waypoint from itinerary (by look-up)
waypoint | waypoint to remove |
---|
remove a listener for when error message should be shown to UI
listener | the listener |
---|
remove a listener for when itinerary items changed
listener | the listener |
---|
Reset the itinerary (to shared prefs or default)
Replace the specific position with the supplied item
position | position to replace |
---|---|
item | item to use |
Replace existing itinerary with the supplied items
items | items to set in the itinerary |
---|
Swap itinerary item positions
idx1 | first index position to swap |
---|---|
idx2 | second index position to swap |
If a tag with a matching tagId is present in itinerary, update its tag information
tag | the tag information to update |
---|