Package com.trimblemaps.navigation.core
Class TrimbleMapsTrip
-
- All Implemented Interfaces:
@UiThread() public final class TrimbleMapsTrip
-
-
Field Summary
Fields Modifier and Type Field Description private Stringnameprivate TripStatusstatusprivate final LocationlastRawLocationprivate final LocationlastEnhancedLocationprivate TripOptionsoptionsprivate final List<TripStop>stopsprivate final TripStopnextOpenStopprivate IntegerselectedRouteIndexprivate DirectionsResponselastRemainingDirectionsResponseprivate final List<DirectionsRoute>routesprivate final DirectionsRouteselectedRouteprivate final StringparentManagedRouteIdprivate final StringmanagedRouteIdprivate final IntegercompletedStopsprivate final IntegeropenStopsprivate List<Integer>customizedCategoryIds
-
Constructor Summary
Constructors Constructor Description TrimbleMapsTrip()
-
Method Summary
-
-
-
Method Detail
-
getStatus
final TripStatus getStatus()
-
setStatus
final Unit setStatus(TripStatus status)
-
getLastRawLocation
final Location getLastRawLocation()
-
getLastEnhancedLocation
final Location getLastEnhancedLocation()
-
getOptions
final TripOptions getOptions()
-
setOptions
final Unit setOptions(TripOptions options)
-
getNextOpenStop
final TripStop getNextOpenStop()
-
getSelectedRouteIndex
final Integer getSelectedRouteIndex()
-
setSelectedRouteIndex
final Unit setSelectedRouteIndex(Integer selectedRouteIndex)
-
getLastRemainingDirectionsResponse
final DirectionsResponse getLastRemainingDirectionsResponse()
-
setLastRemainingDirectionsResponse
final Unit setLastRemainingDirectionsResponse(DirectionsResponse lastRemainingDirectionsResponse)
-
getSelectedRoute
final DirectionsRoute getSelectedRoute()
-
getParentManagedRouteId
final String getParentManagedRouteId()
-
getManagedRouteId
final String getManagedRouteId()
-
getCompletedStops
final Integer getCompletedStops()
-
getOpenStops
final Integer getOpenStops()
-
getCustomizedCategoryIds
final List<Integer> getCustomizedCategoryIds()
-
setCustomizedCategoryIds
final Unit setCustomizedCategoryIds(List<Integer> customizedCategoryIds)
-
insertStop
final Unit insertStop(TripStop stop, Integer atIndex)
-
updateStop
final Unit updateStop(TripStop stop, Integer atIndex)
-
updateStopStatus
final Unit updateStopStatus(TripStopStatus status, Integer atIndex)
-
removeStop
final Unit removeStop(Integer index)
-
updateTrip
final Unit updateTrip(TrimbleMapsTrip newTrip)
-
fullTripRouteOptions
final RouteOptions fullTripRouteOptions()
-
remainingTripRouteOptions
final RouteOptions remainingTripRouteOptions()
-
registerRouteProgressObserver
final Unit registerRouteProgressObserver(RouteProgressObserver observer)
-
unregisterRouteProgressObserver
final Unit unregisterRouteProgressObserver(RouteProgressObserver observer)
-
unregisterOffRouteObserver
final Unit unregisterOffRouteObserver(OffRouteObserver observer)
-
registerOffRouteObserver
final Unit registerOffRouteObserver(OffRouteObserver observer)
-
registerTripObserver
final Unit registerTripObserver(TripObserver observer)
-
unregisterTripObserver
final Unit unregisterTripObserver(TripObserver observer)
-
registerTripDirectionsObserver
final Unit registerTripDirectionsObserver(TripDirectionsObserver observer)
-
unregisterTripDirectionsObserver
final Unit unregisterTripDirectionsObserver(TripDirectionsObserver observer)
-
subscribeToNavigation
final Unit subscribeToNavigation(TrimbleMapsNavigation navigation)
-
unsubscribeFromNavigation
final Unit unsubscribeFromNavigation()
-
getNavigationRoutes
final List<DirectionsRoute> getNavigationRoutes()
Returns the current list of routes in the active navigation (if this trip is subscribed to the navigation), otherwise null
-
completeNextStop
final Unit completeNextStop()
-
updateStatus
final Unit updateStatus(TripStatus tripStatus)
-
fetchRemainingRoute
final Unit fetchRemainingRoute(Callback<DirectionsResponse> callback)
-
fetchFullRoute
final Unit fetchFullRoute(Callback<DirectionsResponse> callback)
-
cancelRunningRequest
final Unit cancelRunningRequest()
-
setCustomizedCategories
final Unit setCustomizedCategories(List<Integer> categories)
-
-