Router

interface Router

Router provides API to fetch route and cancel route-fetching request.

Functions

Link copied to clipboard
abstract fun cancelAll()

Interrupts all in-progress requests.

Link copied to clipboard
abstract fun cancelRouteRefreshRequest(requestId: Long)

Cancels a specific route refresh request.

Link copied to clipboard
abstract fun cancelRouteRequest(requestId: Long)

Cancels a specific route request.

Link copied to clipboard
abstract fun getRoute(routeOptions: RouteOptions, callback: RouterCallback): Long

Fetch routes based on RouteOptions.

Link copied to clipboard
abstract fun getRouteRefresh(    route: DirectionsRoute,     legIndex: Int,     callback: RouteRefreshCallback): Long

Refresh the traffic annotations for a given DirectionsRoute

Link copied to clipboard
abstract fun shutdown()

Release used resources.

Inheritors

Link copied to clipboard