public static interface MapView.DirectionsEventListener
A listener for receiving directions events from the MapView
Modifier and Type | Method and Description |
---|---|
boolean |
onDirectionsClick(Marker marker)
Called when the directions action of the marker callout view is tapped.
|
boolean |
onDirectionsClosed()
Called when the user exits directions.
|
boolean |
onDirectionsError(java.lang.Throwable tr)
Called when there has been an error getting directions.
|
void |
onDirectionsReroute()
Called when the directions need to reroute.
|
boolean |
onDirectionsStart()
Called when the directions are calculated.
|
boolean |
onRouteStepIndexChange(int index)
Called when the route step has been updated.
|
void |
onUseAccessiblePathsChange()
Called when the accessibility option has been toggled by the user.
|
boolean onDirectionsClick(Marker marker)
Called when the directions action of the marker callout view is tapped.
marker
- An instance of the marker that was active when the callout was tapped.true
to indicate that the event has been handled, false
to allow the default action to take place.boolean onRouteStepIndexChange(int index)
Called when the route step has been updated.
index
- The index of the updated step.true
to indicate that the event has been handled, false
to allow the default action to take place.void onDirectionsReroute()
Called when the directions need to reroute.
boolean onDirectionsError(java.lang.Throwable tr)
Called when there has been an error getting directions.
tr
- Exception that occurred while loading directions.true
to indicate that the event has been handled, false
to allow the default action to take place.boolean onDirectionsStart()
Called when the directions are calculated.
true
to indicate that the event has been handled, false
to allow the default action to take place.boolean onDirectionsClosed()
Called when the user exits directions.
true
to indicate that the event has been handled, false
to allow the default action to take place.void onUseAccessiblePathsChange()
Called when the accessibility option has been toggled by the user.