-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose listeners in the NavigationView #614
Conversation
…vigation-android into devota-expose-listeners
- Started marking TODOs for dispatcher firing points
…vigation-android into devota-expose-listeners
…vigation-android into devota-expose-listeners
Noting that this PR will expose the ability to add |
Lookin great and verified all listeners are firing correctly- fired reroute listeners using fake GPS updates provided by |
* | ||
* @since 0.8.0 | ||
*/ | ||
void onFailedReroute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to return the error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the failed reroute listener to provide an error message now. @devotaaabel great PR - feel free to merge once CI passes ✅
NavigationListener
andRouteListener
were created with methods for listening for navigation/routing events and for influencing reroutes.NavigationViewListener
was replaced byOnNavigationReadyCallback
, andonNavigationFinished
was moved toNavigationListener
. Eventually, the plan is to break up these two listeners into individual listeners for each method, so that people don't have to implement more methods than necessary (i.e. see emptyonNavigationRunning
method inNavigationActivity
).TODO:
NavigationListener
void onCancelNavigation()
void onNavigationFinished()
void onNavigationRunning()
RouteListener
boolean allowRerouteFrom(Point offRoutePoint)
void onOffRoute(Point offRoutePoint)
void onRerouteAlong(DirectionsRoute directionsRoute)
void onFailedReroute()
FeedbackListener
onFeedbackOpened()
onFeedbackCancelled()
onFeedbackSent(FeedbackItem item)
cc @ericrwolfe