Interface MapView.DirectionsEventListener

All Known Implementing Classes:
MapFragment, MapSheetFragment
Enclosing class:
MapView

public static interface MapView.DirectionsEventListener
A listener for receiving directions events from the MapView
  • Method Details

    • onDirectionsClick

      boolean onDirectionsClick(Marker marker)
      Called when the directions action of the marker callout view is tapped.
      Parameters:
      marker - An instance of the marker that was active when the callout was tapped.
      Returns:
      true to indicate that the event has been handled, false to allow the default action to take place.
    • onRouteStepIndexChange

      boolean onRouteStepIndexChange(int index)
      Called when the route step has been updated.
      Parameters:
      index - The index of the updated step.
      Returns:
      true to indicate that the event has been handled, false to allow the default action to take place.
    • onDirectionsReroute

      void onDirectionsReroute()
      Called when the directions need to reroute.
    • onDirectionsError

      boolean onDirectionsError(Throwable tr)
      Called when there has been an error getting directions.
      Parameters:
      tr - Exception that occurred while loading directions.
      Returns:
      true to indicate that the event has been handled, false to allow the default action to take place.
    • onDirectionsStart

      boolean onDirectionsStart()
      Called when the directions are calculated.
      Returns:
      true to indicate that the event has been handled, false to allow the default action to take place.
    • onDirectionsClosed

      boolean onDirectionsClosed()
      Called when the user exits directions.
      Returns:
      true to indicate that the event has been handled, false to allow the default action to take place.
    • onUseAccessiblePathsChange

      void onUseAccessiblePathsChange()
      Called when the accessibility option has been toggled by the user.