Interface RouteRefreshCallback

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onRefresh(Integer legIndex, Integer geometryIndex, LegAnnotation updatedAnnotations, DirectionsResponse fasterRoutes) Called when the DirectionsRoute has been refreshed
      abstract Unit onError(RouteRefreshError error) Called when an error has occurred while fetching the route
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onRefresh

         abstract Unit onRefresh(Integer legIndex, Integer geometryIndex, LegAnnotation updatedAnnotations, DirectionsResponse fasterRoutes)

        Called when the DirectionsRoute has been refreshed

        Parameters:
        legIndex - index of the current leg at the time the request was initiated
        geometryIndex - index of the current geometry point in the leg at the time the request was initiated
        updatedAnnotations - updated annotations (congestion, duration, etc.
        fasterRoutes - suggested faster routes
      • onError

         abstract Unit onError(RouteRefreshError error)

        Called when an error has occurred while fetching the route

        Parameters:
        error - RouteRefreshError