RouterCallback

interface RouterCallback

A callback to call when a route or an error is ready to be sent to the Nav SDK.

Functions

Link copied to clipboard
abstract fun onFailure(failure: TestRouterFailure)

Call this method to return an error on route request to the Nav SDK.

Link copied to clipboard
abstract fun onRoutesReady(response: DirectionsResponse)

Call this method to return calculated route to the Nav SDK.