Package com.mapbox.navigation.testing.router
Types
The rule setups a local web server which can serve requests from Navigation SDK. Set baseUrl as RouteOptions.baseUrl to make Nav SDK using local web server. Use createNavigationRouterRule to create an instance of the rule.
Implement this interface to handle route requests from the Navigation SDK.
Implement this interface to handle route refresh requests from the Nav SDK.
Options which indicates which route is being refreshed.
A callback to call when a route or an error is ready to be sent to the Nav SDK.
A callback to call when a route is refreshed or an error is ready to be sent to the Nav SDK.
Represents an error which could happen during route refresh. Use factory methods to create a specific failures.
Represents an error which could happen during route calculation. Use factory methods to create a specific failures.
Functions
Creates an instance of CustomRouterRule. Use it as a JUnit rule in your instrumentation tests.