RoutesInvalidatedObserver

fun interface RoutesInvalidatedObserver

Observer that is notified of routes being invalidated.

Functions

Link copied to clipboard
abstract fun onRoutesInvalidated(params: RoutesInvalidatedParams)

Invoked when routes are invalidated. It means that specified routes won't be refreshed anymore: you won't receive traffic updates, incident updates, etc. It is recommended to rebuild a route once it becomes invalidated. Note: if route A becomes invalidated and you continue using it instead of rebuilding it, you won't be notified the second time that this route is no longer valid: you'll only be notified once about a specific route being invalidated.