CarRoutePreviewRequestCallback

This is a view interface. Each callback function represents a view that will be shown for the situations.

Functions

Link copied to clipboard
Link copied to clipboard
open fun onNetworkFailure()

The route request failed because of a network error. Default implementation falls back to onNoRoutesFound for backward compatibility.

Link copied to clipboard
abstract fun onNoRoutesFound()
Link copied to clipboard
abstract fun onRoutesReady(placeRecord: PlaceRecord, routes: List<NavigationRoute>)
Link copied to clipboard
open fun onRoutingFailure(reasons: List<RouterFailure>)

The route request failed for a reason other than "no route exists" or a network error (for example throttling, authentication, or response parsing). Default implementation falls back to onNoRoutesFound for backward compatibility.

Link copied to clipboard